package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.integration.dto.*;
import com.wicket.okrapp.integration.dto.DocumentDto;
import com.wicket.okrbff.biz.service.CommonService;
import com.wicket.okrbff.biz.service.UnstructuredDataService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.tools.StringUtils;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import javax.annotation.Resource;

import com.wicket.okrcomponent.common.exception.BizException;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrcomponent.integration.dto.DeleteDocAndDocRelaComReqDto;
import com.wicket.okrcomponent.integration.dto.DeleteDocAndDocRelaComRespDto;
import com.wicket.okrcomponent.integration.dto.UnstructuredRelationshipDto;
import com.wicket.okrdataassets.integration.FwDataassetsResourceFileClient;
import com.wicket.okrdataassets.integration.dto.*;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wicket.okrapp.integration.FwAppPlanDataClient;
import com.wicket.okrbff.biz.service.dto.common.BffBusAppDocRelaDto;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrcomponent.integration.FwCompUnstructuredDataClient;
import com.wicket.okrapp.integration.FwAppUnstructuredDataClient;
import com.wicket.okrbff.biz.service.dto.common.BffUnstructuredRelationshipDto;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrframework.integration.FwBaseMemberClient;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrbff.biz.service.dto.common.BffDocumentDto;
import com.wicket.okrbff.biz.service.dto.common.BffDataFolderDto;
import org.springframework.web.multipart.MultipartFile;
import com.wicket.okrapp.integration.FwAppEvaCalcClient;
import com.wicket.okrbff.biz.service.dto.common.BffSubordinateChargeSmallCircleDto;
import com.wicket.okrbff.biz.service.dto.common.BffEvaObjTargetCycleDto;
import com.wicket.okrapp.integration.FwAppDashboardTargetContentClient;
import com.wicket.okrapp.integration.FwAppVirtualOrgClient;
import com.wicket.okrframework.integration.FwBaseOrgClient;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrapp.integration.FwAppTargetCycleClient;
import com.wicket.okrapp.integration.FwAppIndexSystemClient;
import com.wicket.okrbff.common.dto.TreeNode;
import java.util.ArrayList;
import java.util.List;
import com.wicket.okrapp.integration.FwAppDashboardAchievementClient;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrcomponent.integration.FwCompOssClient;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class UnstructuredDataServiceImpl implements UnstructuredDataService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  FwAppPlanDataClient fwAppPlanDataClient;
@Resource
  FwCompUnstructuredDataClient fwCompUnstructuredDataClient;

@Resource
FwDataassetsResourceFileClient fwDataassetsResourceFileClient;
@Resource
  FwAppUnstructuredDataClient fwAppUnstructuredDataClient;
@Resource
  FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  FwBaseMemberClient fwBaseMemberClient;
    @Resource
    CommonService commonService;
@Resource
  FwAppEvaCalcClient fwAppEvaCalcClient;
@Resource
  FwAppDashboardTargetContentClient fwAppDashboardTargetContentClient;

@Resource
  FwAppVirtualOrgClient fwAppVirtualOrgClient;
@Resource
  FwBaseOrgClient fwBaseOrgClient;

@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  FwAppTargetCycleClient fwAppTargetCycleClient;
@Resource
  FwAppIndexSystemClient fwAppIndexSystemClient;
@Resource
  FwAppDashboardAchievementClient fwAppDashboardAchievementClient;
@Resource
  FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
  FwCompOssClient fwCompOssClient;
/**
   * B3-查询业务应用文档关系列表(公共)[3296]
   * gen by moon at 3/27/2023, 1:11:58 AM
   */
    @Trace(operationName = "B3-查询业务应用文档关系列表(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryBusAppDocRelaListComRespDto queryBusAppDocRelaListCom(BffQueryBusAppDocRelaListComReqDto reqDto){
      
       
       QueryBusAppDocRelaListComRespDto queryBusAppDocRelaListComRespDto_1 =null;
//步骤0: D3-13查询业务应用文档关系列表(公共) - queryBusAppDocRelaListCom
     QueryBusAppDocRelaListComRespDto queryBusAppDocRelaListComRespDto = null;
    QueryBusAppDocRelaListComReqDto queryBusAppDocRelaListComReqDto=new QueryBusAppDocRelaListComReqDto();
  queryBusAppDocRelaListComReqDto.setBaseFileRelationshipType("DIRECT_RELATION");//sourceId:127223_1
if(reqDto!=null){
      queryBusAppDocRelaListComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:127225_1
queryBusAppDocRelaListComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786493_1
queryBusAppDocRelaListComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:127224_1
    }
  
    /*D3-13查询业务应用文档关系列表(公共)[3283]   */
    Assert.isNull(queryBusAppDocRelaListComReqDto.getEntityId(),"B3-查询业务应用文档关系列表(公共)-D3-13查询业务应用文档关系列表(公共)-归属内容实例ID不能为空",false);
Assert.isNull(queryBusAppDocRelaListComReqDto.getBaseFileRelationshipType(),"B3-查询业务应用文档关系列表(公共)-D3-13查询业务应用文档关系列表(公共)-文档内容关系类型编码不能为空",false);
//Assert.isNull(queryBusAppDocRelaListComReqDto.getDocUseType(),"B3-查询业务应用文档关系列表(公共)-D3-13查询业务应用文档关系列表(公共)-文档用途类型不能为空",false);
Assert.isNull(queryBusAppDocRelaListComReqDto.getBizAppFileTypeCode(),"B3-查询业务应用文档关系列表(公共)-D3-13查询业务应用文档关系列表(公共)-业务应用文档归属类型编码不能为空",false);
      queryBusAppDocRelaListComRespDto = fwAppPlanDataClient.queryBusAppDocRelaListCom(queryBusAppDocRelaListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryBusAppDocRelaListComRespDto_1 = queryBusAppDocRelaListComRespDto;
    
BffQueryBusAppDocRelaListComRespDto retData = new BffQueryBusAppDocRelaListComRespDto();
  if(queryBusAppDocRelaListComRespDto_1!=null){
      retData.setBusAppDocRelaList(queryBusAppDocRelaListComRespDto_1.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, BffBusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:127227_1
    }
  

  
  
return retData;
  }
/**
   * B3-删除业务应用文档关系(公共)[3275]
   * gen by moon at 11/15/2022, 3:48:07 PM
   */
    @Trace(operationName = "B3-删除业务应用文档关系(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteBusAppDocRelaComRespDto deleteBusAppDocRelaCom(BffDeleteBusAppDocRelaComReqDto reqDto){
      
       
       //步骤0: D3-7删除文档及文档关系(公共) - deleteDocAndDocRelaCom
     DeleteDocAndDocRelaComRespDto deleteDocAndDocRelaComRespDto = null;
    DeleteDocAndDocRelaComReqDto deleteDocAndDocRelaComReqDto=new DeleteDocAndDocRelaComReqDto();
  if(reqDto!=null){
      deleteDocAndDocRelaComReqDto.setUnstructuredDataRelationshipId(reqDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:126050_1
    }
  
    /*D3-7删除文档及文档关系(公共)[3242]   */
    Assert.isNull(deleteDocAndDocRelaComReqDto.getUnstructuredDataRelationshipId(),"B3-删除业务应用文档关系(公共)-D3-7删除文档及文档关系(公共)-文档关系ID不能为空",false);
//      deleteDocAndDocRelaComRespDto = fwAppUnstructuredDataClient.deleteDocAndDocRelaCom(deleteDocAndDocRelaComReqDto);
      
      
      
    
BffDeleteBusAppDocRelaComRespDto retData = new BffDeleteBusAppDocRelaComRespDto();
  
  

  
  
return retData;
  }
/**
   * B3执行删除业务应用文档附件[7450]
   * gen by moon at 9/26/2023, 1:35:17 PM
   */
    @Trace(operationName = "B3执行删除业务应用文档附件")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementDelBusAppDocRelaRespDto implementDelBusAppDocRela(BffImplementDelBusAppDocRelaReqDto reqDto){


       //步骤0: D3执行删资料文档附件 - implementDelBusAppDocRela
     ImplementDelBusAppDocRelaRespDto implementDelBusAppDocRelaRespDto = null;
    ImplementDelBusAppDocRelaReqDto implementDelBusAppDocRelaReqDto=new ImplementDelBusAppDocRelaReqDto();
  if(reqDto!=null){
      implementDelBusAppDocRelaReqDto.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1136243_1
implementDelBusAppDocRelaReqDto.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1136244_1
    }

    /*D3执行删资料文档附件[7452]   */
    Assert.isNull(implementDelBusAppDocRelaReqDto.getFileRelativePathAccess(),"B3执行删除业务应用文档附件-D3执行删资料文档附件-文件相对路径地址不能为空",false);
      implementDelBusAppDocRelaRespDto = fwAppUnstructuredDataClient.implementDelBusAppDocRela(implementDelBusAppDocRelaReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffImplementDelBusAppDocRelaRespDto retData = new BffImplementDelBusAppDocRelaRespDto();





return retData;
  }
/**
   * B2查询文档关系实例列表[8784]
   * gen by moon at 7/22/2024, 6:34:31 PM
   */
    @Trace(operationName = "B2查询文档关系实例列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryUnstructuredRelationshipInstanceListRespDto queryUnstructuredRelationshipInstanceList(BffQueryUnstructuredRelationshipInstanceListReqDto reqDto){


       QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListComRespDto_1 =null;
//步骤0: D2查询文档关系实例列表(公共) - queryUnstructuredRelationshipInstanceListCom
     QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListComRespDto = null;
    QueryUnstructuredRelationshipInstanceListComReqDto queryUnstructuredRelationshipInstanceListComReqDto=new QueryUnstructuredRelationshipInstanceListComReqDto();
  if(reqDto!=null){
      queryUnstructuredRelationshipInstanceListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1945571_1
      queryUnstructuredRelationshipInstanceListComReqDto.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1660904_1
queryUnstructuredRelationshipInstanceListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1945559_1
queryUnstructuredRelationshipInstanceListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1660905_1
queryUnstructuredRelationshipInstanceListComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1658773_1
queryUnstructuredRelationshipInstanceListComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1658772_1
queryUnstructuredRelationshipInstanceListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1945560_1
queryUnstructuredRelationshipInstanceListComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660906_1
queryUnstructuredRelationshipInstanceListComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1945561_1
      queryUnstructuredRelationshipInstanceListComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1658770_1
queryUnstructuredRelationshipInstanceListComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1660907_1
queryUnstructuredRelationshipInstanceListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1660908_1
queryUnstructuredRelationshipInstanceListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658771_1
    }

    /*D2查询文档关系实例列表(公共)[8781]   */
Assert.isNull(queryUnstructuredRelationshipInstanceListComReqDto.getSpaceId(),"B2查询文档关系实例列表-D2查询文档关系实例列表(公共)-创建于空间ID不能为空",false);
      queryUnstructuredRelationshipInstanceListComRespDto = fwCompUnstructuredDataClient.queryUnstructuredRelationshipInstanceListCom(queryUnstructuredRelationshipInstanceListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryUnstructuredRelationshipInstanceListComRespDto_1 = queryUnstructuredRelationshipInstanceListComRespDto;

BffQueryUnstructuredRelationshipInstanceListRespDto retData = new BffQueryUnstructuredRelationshipInstanceListRespDto();
  if(queryUnstructuredRelationshipInstanceListComRespDto_1!=null){
      retData.setUnstructuredRelationshipList(queryUnstructuredRelationshipInstanceListComRespDto_1.getUnstructuredRelationshipList().stream().map(item -> {
          BffUnstructuredRelationshipDto elm = BeanUtil.toBean(item,BffUnstructuredRelationshipDto.class);
          elm.setFileRelativeAllPathAccess(elm.getFileRelativeAllPathAccess());
          return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1658801_1
    }




return retData;
  }

    public static String removeFileExtension(String fileName) {
        if (fileName == null || fileName.isEmpty()) {
            return fileName;
        }

        int lastDotIndex = fileName.lastIndexOf('.');
        if (lastDotIndex == -1) {
            return fileName; // 文件名没有扩展名
        }

        return fileName.substring(0, lastDotIndex);
    }


    /**
     * 计算通过Base64编码的图片数据字符串的字节数
     * @image 图片数据
     */
    public Integer getImageSize(String image) {
        String str=image.substring(22); // 1. 去除数据前缀:data:image/png;base64, (这些前缀是可变的)
        Integer equalIndex=str.indexOf("=");//2. 找等号, 等号之前才是有效数据
        if(str.indexOf("=")>0) {
            str=str.substring(0, equalIndex);
        }
        Integer strLength=str.length();//3. 获得有效字符串的长度, 即去掉等号后的字符串长度
        Integer size=strLength-(strLength%3)/2; //4. 计算有效的字节大小, 由于每3个Base64字符代表2个字节, 所以要这样计算
        return size;
    }

    public String[] parseFileNameAndType(String fullName) {
        int dotIndex = fullName.lastIndexOf('.');  // 找到最后一个点的位置
        if (dotIndex == -1 || dotIndex == 0) {  // 如果没有点或者点是第一个字符，视为没有有效的扩展名
            return new String[] {fullName, ""};  // 返回文件名没有扩展名
        } else {
            String name = fullName.substring(0, dotIndex);  // 获取点之前的字符串作为文件名
            String extension = fullName.substring(dotIndex + 1);  // 获取点之后的字符串作为扩展名
            return new String[] {name, extension};
        }
    }

/**
   * B2执行上传文档[8789]
   * gen by moon at 6/3/2025, 1:31:40 PM
   */
    @Trace(operationName = "B2执行上传文档")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementUploadFileRespDto implementUploadFile(BffImplementUploadFileReqDto reqDto){


       ImplementUploadFileComRespDto implementUploadFileComRespDto_1 = null;
       AddDocumentComRespDto addDocumentComRespDto_1 =null;
QueryObjectStorageConfigDetailComRespDto queryObjectStorageConfigDetailComRespDto_1 =null;
//virtualUsage D2准备上传文档配置(公共)  73804
     PreparationUploadFileConfComRespDto preparationUploadFileConfComRespDto = null;
    PreparationUploadFileConfComReqDto preparationUploadFileConfComReqDto=new PreparationUploadFileConfComReqDto();
  if(reqDto!=null){
      preparationUploadFileConfComReqDto.setUploadImageSpecifications(reqDto.getUploadImageSpecifications());//SimpleFieldAssign//sourceId:1658881_1_73804
    }

    /*D2准备上传文档配置(公共)[8785]   */

      preparationUploadFileConfComRespDto = fwCompConfSchemeClient.preparationUploadFileConfCom(preparationUploadFileConfComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D2执行上传文档（本地存储手写代码）  73805
     ImplementUploadFileComRespDto implementUploadFileComRespDto = null;
    if(preparationUploadFileConfComRespDto !=null){
          ImplementUploadFileComReqDto implementUploadFileComReqDto=new ImplementUploadFileComReqDto();
  implementUploadFileComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1863267_1_73805
  if(reqDto!=null){
//      implementUploadFileComReqDto.setUploadFile(reqDto.getUploadFile());//SimpleFieldAssign//sourceId:1659227_1
implementUploadFileComReqDto.setUploadCroppedImage(reqDto.getUploadCroppedImage());//SimpleFieldAssign//sourceId:1659228_1
implementUploadFileComReqDto.setPlatformOrTenantDoc(reqDto.getPlatformOrTenantDoc());//SimpleFieldAssign//sourceId:1659278_1
implementUploadFileComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659315_1
implementUploadFileComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659314_1
    }
if(preparationUploadFileConfComRespDto!=null){
      implementUploadFileComReqDto.setFileStorageRootPath(preparationUploadFileConfComRespDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1659313_1_73805
    }

    /*D2执行上传文档（手写代码）[8795]   */
    Assert.isNull(implementUploadFileComReqDto.getPlatformOrTenantDoc(),"B2执行上传文档-D2执行上传文档（手写代码）-平台或租户文档不能为空",false);
Assert.isNull(implementUploadFileComReqDto.getDocUseType(),"B2执行上传文档-D2执行上传文档（手写代码）-文档用途类型不能为空",false);
Assert.isNull(implementUploadFileComReqDto.getFileStorageRootPath(),"B2执行上传文档-D2执行上传文档（手写代码）-文件存储根路径不能为空",false);
Assert.isNull(implementUploadFileComReqDto.getSpaceId(),"B2执行上传文档-D2执行上传文档（手写代码）-创建于空间ID不能为空",false);
      implementUploadFileComRespDto = fwCompUnstructuredDataClient.implementUploadFileCom(implementUploadFileComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


           }


       boolean useOss = false;

//        if(reqDto.getDocUseType().equals("DATA_RESOURCE")){
//            useOss = true;
//        }

        String scope = null;
        String use = null;
        String spaceId = null;
        MultipartFile file = reqDto.getUploadFile();

        if(reqDto.getPlatformOrTenantDoc().equals("PLATFORM")){
            scope = "PLATFORM";
        }else{
            scope = "SPACE";
        }
        use = reqDto.getDocUseType();
        spaceId = reqDto.getSpaceId();
        if(reqDto.getUploadCroppedImage()!=null && !reqDto.getUploadCroppedImage().isEmpty()){
            try {
                String fileName = commonService.uploadImage(implementUploadFileComRespDto.getFileStoreAllPathAccess(),use, reqDto.getUploadCroppedImage(),useOss);

                implementUploadFileComRespDto.setFileRelativePathAccess(implementUploadFileComRespDto.getFileRelativePathAccess() + fileName);
                implementUploadFileComRespDto.setFileRelativeAllPathAccess(CommonFunctionHelper.getFilePath(implementUploadFileComRespDto.getFileRelativePathAccess()));

                if(fileName!=null && !fileName.isEmpty()){
                    Integer fileSize = getImageSize(reqDto.getUploadCroppedImage());
                    String[] fileInfo = parseFileNameAndType(fileName);
                    implementUploadFileComRespDto.setFileSize(String.valueOf(fileSize));
                    implementUploadFileComRespDto.setUnstructuredDataName(fileInfo[0]);
                    implementUploadFileComRespDto.setPostfix(fileInfo[1]);
                }

            } catch (Exception e) {
                String msg = "上传裁剪后图片失败:"+e;
                throw new BizException("-1",msg,false);
            }
        }else{

            try{
                String fileName = commonService.uploadNoramlImage(implementUploadFileComRespDto.getFileStoreAllPathAccess(),use,file,useOss);

                implementUploadFileComRespDto.setFileRelativePathAccess(implementUploadFileComRespDto.getFileRelativePathAccess() + fileName);
                implementUploadFileComRespDto.setFileRelativeAllPathAccess(CommonFunctionHelper.getFilePath(implementUploadFileComRespDto.getFileRelativePathAccess()));
                implementUploadFileComRespDto.setFileSize(String.valueOf(file.getSize()));
                implementUploadFileComRespDto.setUnstructuredDataName(removeFileExtension(file.getOriginalFilename()));
                if(!StringUtils.isEmpty(file.getOriginalFilename()) && file.getOriginalFilename().lastIndexOf(".")>=0){
                    String type = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1);
                    implementUploadFileComRespDto.setPostfix(type);
                }
            }catch (Exception e){
                e.printStackTrace();
                String msg = "上传文件失败:"+e;
                throw new BizException("-1",msg,false);
            }


        }





//步骤2: D1查询身份人员详情(公共) - queryBeginMemberDetailCom
     QueryBeginMemberDetailComRespDto queryBeginMemberDetailComRespDto = null;
    QueryBeginMemberDetailComReqDto queryBeginMemberDetailComReqDto=new QueryBeginMemberDetailComReqDto();
  queryBeginMemberDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1659434_1
if(reqDto!=null){
      queryBeginMemberDetailComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1659433_1
queryBeginMemberDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659435_1
    }

    /*D1查询身份人员详情(公共)[8791]   */
    Assert.isNull(queryBeginMemberDetailComReqDto.getOriginalRoleMemberId(),"B2执行上传文档-D1查询身份人员详情(公共)-身份人员ID不能为空",false);
Assert.isNull(queryBeginMemberDetailComReqDto.getSubjectLifeCycle(),"B2执行上传文档-D1查询身份人员详情(公共)-主体生命周期不能为空",false);
Assert.isNull(queryBeginMemberDetailComReqDto.getSpaceId(),"B2执行上传文档-D1查询身份人员详情(公共)-创建于空间ID不能为空",false);
      queryBeginMemberDetailComRespDto = fwBaseMemberClient.queryBeginMemberDetailCom(queryBeginMemberDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        if(!reqDto.getDocUseType().equals("DATA_RESOURCE")){
            //步骤3: D2-7新增文档(公共) - addDocumentCom
            AddDocumentComRespDto addDocumentComRespDto = null;
            if(implementUploadFileComRespDto !=null){
                AddDocumentComReqDto addDocumentComReqDto=new AddDocumentComReqDto();
                if(implementUploadFileComRespDto!=null){
                    addDocumentComReqDto.setFileRelativePathAccess(implementUploadFileComRespDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1659169_1
                    addDocumentComReqDto.setPostfix(implementUploadFileComRespDto.getPostfix());//SimpleFieldAssign//sourceId:1659170_1
                    addDocumentComReqDto.setFileSize(implementUploadFileComRespDto.getFileSize());//SimpleFieldAssign//sourceId:1659171_1
                    addDocumentComReqDto.setUnstructuredDataName(implementUploadFileComRespDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1659172_1
                }
                if(reqDto!=null){
                    addDocumentComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1659476_1
                    addDocumentComReqDto.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1659457_1
                    addDocumentComReqDto.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:1659037_1
                    addDocumentComReqDto.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659429_1
                    addDocumentComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1658981_1
                    addDocumentComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1658982_1
                    addDocumentComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658979_1
                }
                if(queryBeginMemberDetailComRespDto!=null){
                    addDocumentComReqDto.setUserId(queryBeginMemberDetailComRespDto.getUserId());//SimpleFieldAssign//sourceId:1659430_1
                    addDocumentComReqDto.setOriginalRoleMemberId(queryBeginMemberDetailComRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1659431_1
                    addDocumentComReqDto.setMemberId(queryBeginMemberDetailComRespDto.getMemberId());//SimpleFieldAssign//sourceId:1659432_1
                }


                /*D2-7新增文档(公共)[3284]   */
                Assert.isNull(addDocumentComReqDto.getFileRelativePathAccess(),"B2执行上传文档-D2-7新增文档(公共)-文件相对路径地址不能为空",false);
                Assert.isNull(addDocumentComReqDto.getPostfix(),"B2执行上传文档-D2-7新增文档(公共)-文档后缀不能为空",false);
                Assert.isNull(addDocumentComReqDto.getFileSize(),"B2执行上传文档-D2-7新增文档(公共)-文件大小不能为空",false);
                Assert.isNull(addDocumentComReqDto.getUnstructuredDataName(),"B2执行上传文档-D2-7新增文档(公共)-文档名称不能为空",false);
                Assert.isNull(addDocumentComReqDto.getFolderName(),"B2执行上传文档-D2-7新增文档(公共)-文件夹名不能为空",false);
                Assert.isNull(addDocumentComReqDto.getIsUserUpload(),"B2执行上传文档-D2-7新增文档(公共)-是否来自个人网盘文件不能为空",false);
                Assert.isNull(addDocumentComReqDto.getIsPrivateNetDisk(),"B2执行上传文档-D2-7新增文档(公共)-是否自主网盘不能为空",false);
                Assert.isNull(addDocumentComReqDto.getUserId(),"B2执行上传文档-D2-7新增文档(公共)-归属个人账号不能为空",false);
                Assert.isNull(addDocumentComReqDto.getOriginalRoleMemberId(),"B2执行上传文档-D2-7新增文档(公共)-归属身份人员ID不能为空",false);
                Assert.isNull(addDocumentComReqDto.getMemberId(),"B2执行上传文档-D2-7新增文档(公共)-归属空间成员ID不能为空",false);
                Assert.isNull(addDocumentComReqDto.getSpaceId(),"B2执行上传文档-D2-7新增文档(公共)-创建于空间ID不能为空",false);
                addDocumentComRespDto = fwCompUnstructuredDataClient.addDocumentCom(addDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                addDocumentComRespDto_1 = addDocumentComRespDto;
            }
QueryObjectStorageConfigDetailComRespDto queryObjectStorageConfigDetailComRespDto = null;
    if(addDocumentComRespDto !=null){
          QueryObjectStorageConfigDetailComReqDto queryObjectStorageConfigDetailComReqDto=new QueryObjectStorageConfigDetailComReqDto();
  if(addDocumentComRespDto!=null){
      queryObjectStorageConfigDetailComReqDto.setUnstructuredDataId(addDocumentComRespDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:2048742_1_74092
    }

    /*D2接收文件ID出参[10541]   */
    Assert.isNull(queryObjectStorageConfigDetailComReqDto.getUnstructuredDataId(),"B2执行上传文档-D2接收文件ID出参-文档ID不能为空",false);
      queryObjectStorageConfigDetailComRespDto = fwCompOssClient.queryObjectStorageConfigDetailCom(queryObjectStorageConfigDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryObjectStorageConfigDetailComRespDto_1 = queryObjectStorageConfigDetailComRespDto;
           }
      }
else if((reqDto!= null&&  reqDto.getDocUseType() !=null && reqDto.getDocUseType().equals("DATA_RESOURCE"))){
       //elseif(B2执行上传文档.文档用途类型 等于 数据资源)  73807

QueryResourceFileListComRespDto queryResourceFileListComRespDto = null;
            QueryResourceFileListComReqDto queryResourceFileListComReqDto = new QueryResourceFileListComReqDto();
  queryResourceFileListComReqDto.setIsValid("FALSE");//sourceId:2047922_1_74090
if(reqDto!=null){
      queryResourceFileListComReqDto.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2047919_1_74090
queryResourceFileListComReqDto.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2047920_1_74090
queryResourceFileListComReqDto.setCopyRightOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2047921_1_74090
            }

    /*D8查询资源文件列表(公共)[10393]   */
    Assert.isNull(queryResourceFileListComReqDto.getResourceCopyRightType(),"B2执行上传文档-D8查询资源文件列表(公共)-资源文件版权归属类型不能为空",false);
Assert.isNull(queryResourceFileListComReqDto.getIsValid(),"B2执行上传文档-D8查询资源文件列表(公共)-是否作废不能为空",false);
      queryResourceFileListComRespDto = fwDataassetsResourceFileClient.queryResourceFileListCom(queryResourceFileListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



ImplementNameCopyHandleComRespDto implementNameCopyHandleComRespDto = null;
    if(implementUploadFileComRespDto !=null&&queryResourceFileListComRespDto !=null){
          ImplementNameCopyHandleComReqDto implementNameCopyHandleComReqDto=new ImplementNameCopyHandleComReqDto();
  if(implementUploadFileComRespDto!=null){
      implementNameCopyHandleComReqDto.setCustomField(implementUploadFileComRespDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:2047935_1_74091
    }
if(queryResourceFileListComRespDto!= null&&  queryResourceFileListComRespDto.getResourceFileList() !=null&& !CollectionUtil.isEmpty(queryResourceFileListComRespDto.getResourceFileList())){
      implementNameCopyHandleComReqDto.setComDatasList(//objList-to-objLists
        queryResourceFileListComRespDto.getResourceFileList().stream().map(item -> {
      ComDatasDto elm = new ComDatasDto();
      if(item!=null){
      elm.setCustomField1(item.getResourceFileId());//SimpleFieldAssign//sourceId:434984_2_74091
elm.setCustomField2(item.getResourceFileName());//SimpleFieldAssign//sourceId:434985_2_74091
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:2047937_1_74091
    }

    /*D2执行名称副本处理(公共)[10540]   */
    Assert.isNull(implementNameCopyHandleComReqDto.getCustomField(),"B2执行上传文档-D2执行名称副本处理(公共)-自定义字段不能为空",false);
      implementNameCopyHandleComRespDto = fwCompInterfaceModeClient.implementNameCopyHandleCom(implementNameCopyHandleComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementResourceFileComRespDto implementResourceFileComRespDto = null;
    if(implementNameCopyHandleComRespDto !=null&&implementUploadFileComRespDto !=null){
          ImplementResourceFileComReqDto implementResourceFileComReqDto=new ImplementResourceFileComReqDto();
  implementResourceFileComReqDto.setIsEvi("FALSE");//sourceId:2037205_1_73811
if(reqDto!=null){
      implementResourceFileComReqDto.setHashCode(reqDto.getHashCode());//SimpleFieldAssign//sourceId:2037197_1_73811
implementResourceFileComReqDto.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:2037203_1_73811
implementResourceFileComReqDto.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2037206_1_73811
implementResourceFileComReqDto.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2037207_1_73811
implementResourceFileComReqDto.setCopyRightOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2037204_1_73811
            }
if(implementNameCopyHandleComRespDto!=null){
      implementResourceFileComReqDto.setResourceFileName(implementNameCopyHandleComRespDto.getNameCopyValue());//SimpleFieldAssign//sourceId:2037198_1_73811
            }
if(implementUploadFileComRespDto!=null){
      implementResourceFileComReqDto.setResourceFileRelaPath(implementUploadFileComRespDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:2037200_1_73811
implementResourceFileComReqDto.setResourceFileSize(Long.valueOf(implementUploadFileComRespDto.getFileSize()));//SimpleFieldAssign//sourceId:2037201_1_73811
implementResourceFileComReqDto.setResourceFileExtension(implementUploadFileComRespDto.getPostfix());//SimpleFieldAssign//sourceId:2037202_1_73811
        }

    /*D8执行新增资源文件(公共)[10454]   */
    Assert.isNull(implementResourceFileComReqDto.getResourceFileName(),"B2执行上传文档-D8执行新增资源文件(公共)-资源文件名称不能为空",false);
Assert.isNull(implementResourceFileComReqDto.getResourceFileRelaPath(),"B2执行上传文档-D8执行新增资源文件(公共)-资源文件相对路径不能为空",false);
Assert.isNull(implementResourceFileComReqDto.getResourceFileSize(),"B2执行上传文档-D8执行新增资源文件(公共)-资源文件大小不能为空",false);
Assert.isNull(implementResourceFileComReqDto.getResourceFileExtension(),"B2执行上传文档-D8执行新增资源文件(公共)-资源文件后缀不能为空",false);
Assert.isNull(implementResourceFileComReqDto.getIsUserUpload(),"B2执行上传文档-D8执行新增资源文件(公共)-是否来自个人网盘文件不能为空",false);
Assert.isNull(implementResourceFileComReqDto.getIsEvi(),"B2执行上传文档-D8执行新增资源文件(公共)-是否有存证不能为空",false);
      implementResourceFileComRespDto = fwDataassetsResourceFileClient.implementResourceFileCom(implementResourceFileComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
QueryObjectStorageConfigDetailComRespDto queryObjectStorageConfigDetailComRespDto_2 = null;
    if(implementResourceFileComRespDto !=null){
          QueryObjectStorageConfigDetailComReqDto queryObjectStorageConfigDetailComReqDto_1=new QueryObjectStorageConfigDetailComReqDto();
  if(implementResourceFileComRespDto!=null){
      queryObjectStorageConfigDetailComReqDto_1.setUnstructuredDataId(implementResourceFileComRespDto.getResourceFileId());//SimpleFieldAssign//sourceId:2048742_1_74093
    }

    /*D2接收文件ID出参[10541]   */
    Assert.isNull(queryObjectStorageConfigDetailComReqDto_1.getUnstructuredDataId(),"B2执行上传文档-D2接收文件ID出参-文档ID不能为空",false);
      queryObjectStorageConfigDetailComRespDto_2 = fwCompOssClient.queryObjectStorageConfigDetailCom(queryObjectStorageConfigDetailComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      queryObjectStorageConfigDetailComRespDto_1 = queryObjectStorageConfigDetailComRespDto_2;
           }
    }
BffImplementUploadFileRespDto retData = new BffImplementUploadFileRespDto();
  if(addDocumentComRespDto_1!=null){
      retData.setUnstructuredDataFolderId(addDocumentComRespDto_1.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1659004_1
    }
if(queryObjectStorageConfigDetailComRespDto_1!=null){
      retData.setUnstructuredDataId(queryObjectStorageConfigDetailComRespDto_1.getUnstructuredDataId());//SimpleFieldAssign//sourceId:2048744_1
  }
if(implementUploadFileComRespDto!=null){
    // TODO: 2024/6/9
      retData.setPostfix(implementUploadFileComRespDto.getPostfix());//SimpleFieldAssign//sourceId:1860700_1
retData.setFileRelativePathAccess(implementUploadFileComRespDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1860699_1
    retData.setFileRelativeAllPathAccess(implementUploadFileComRespDto.getFileRelativeAllPathAccess());
retData.setFileSize(implementUploadFileComRespDto.getFileSize());//SimpleFieldAssign//sourceId:1860701_1
retData.setUnstructuredDataName(implementUploadFileComRespDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1860702_1
    }




return retData;
  }
/**
   * B2执行分离新增或删除文档列表(管理)[8798]
   * gen by moon at 7/18/2024, 6:41:45 PM
   */
    @Trace(operationName = "B2执行分离新增或删除文档列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementSeparateAddOrDeleteDocListRespDto implementSeparateAddOrDeleteDocList(BffImplementSeparateAddOrDeleteDocListReqDto reqDto){


       //步骤0: D2执行分离新增或删除文档列表(公共) - implementSeparateAddOrDeleteDocListCom
     ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListComRespDto = null;
    ImplementSeparateAddOrDeleteDocListComReqDto implementSeparateAddOrDeleteDocListComReqDto=new ImplementSeparateAddOrDeleteDocListComReqDto();
  implementSeparateAddOrDeleteDocListComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1934771_1
  if(reqDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1659283_1
implementSeparateAddOrDeleteDocListComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659284_1
implementSeparateAddOrDeleteDocListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1859359_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1659285_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1659286_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659280_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1659287_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1659288_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1659289_1
implementSeparateAddOrDeleteDocListComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1659290_1
implementSeparateAddOrDeleteDocListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1659291_1
implementSeparateAddOrDeleteDocListComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660945_1
implementSeparateAddOrDeleteDocListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659281_1
    }
if(reqDto!= null&&  reqDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(reqDto.getDocumentList())){
      implementSeparateAddOrDeleteDocListComReqDto.setDocumentList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659282_1
    }

    /*D2执行分离新增或删除文档列表(公共)[8783]   */
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsCleanPersonalInvalidDocument(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-是否清理个人无效文档不能为空",false);
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseSceneCode(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-文档应用业务场景不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseType(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-文档用途类型不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnTableTypeCode(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-归属内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnEntityId(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getSpaceId(),"B2执行分离新增或删除文档列表(管理)-D2执行分离新增或删除文档列表(公共)-创建于空间ID不能为空",false);
      implementSeparateAddOrDeleteDocListComRespDto = fwCompUnstructuredDataClient.implementSeparateAddOrDeleteDocListCom(implementSeparateAddOrDeleteDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffImplementSeparateAddOrDeleteDocListRespDto retData = new BffImplementSeparateAddOrDeleteDocListRespDto();





return retData;
  }
/**
   * B2查询我的网盘最新文档列表[8811]
   * gen by moon at 8/10/2024, 9:52:10 PM
   */
    @Trace(operationName = "B2查询我的网盘最新文档列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMyNetDiskLatestDocListRespDto queryMyNetDiskLatestDocList(BffQueryMyNetDiskLatestDocListReqDto reqDto){


       QueryMyNetDiskLatestDocListComRespDto queryMyNetDiskLatestDocListComRespDto_1 =null;
//步骤0: D2查询我的网盘最新文档列表(公共) - queryMyNetDiskLatestDocListCom
     QueryMyNetDiskLatestDocListComRespDto queryMyNetDiskLatestDocListComRespDto = null;
    QueryMyNetDiskLatestDocListComReqDto queryMyNetDiskLatestDocListComReqDto=new QueryMyNetDiskLatestDocListComReqDto();
  if(reqDto!=null){
      queryMyNetDiskLatestDocListComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660835_1
queryMyNetDiskLatestDocListComReqDto.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659828_1
queryMyNetDiskLatestDocListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1659835_1
queryMyNetDiskLatestDocListComReqDto.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1659834_1
queryMyNetDiskLatestDocListComReqDto.setUnstructuredDataType(reqDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:1659836_1
queryMyNetDiskLatestDocListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1966902_1
queryMyNetDiskLatestDocListComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659829_1
queryMyNetDiskLatestDocListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659827_1
    }

    /*D2查询我的网盘最新文档列表(公共)[8809]   */
Assert.isNull(queryMyNetDiskLatestDocListComReqDto.getSpaceId(),"B2查询我的网盘最新文档列表-D2查询我的网盘最新文档列表(公共)-创建于空间ID不能为空",false);
      queryMyNetDiskLatestDocListComRespDto = fwCompUnstructuredDataClient.queryMyNetDiskLatestDocListCom(queryMyNetDiskLatestDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryMyNetDiskLatestDocListComRespDto_1 = queryMyNetDiskLatestDocListComRespDto;

BffQueryMyNetDiskLatestDocListRespDto retData = new BffQueryMyNetDiskLatestDocListRespDto();
  if(queryMyNetDiskLatestDocListComRespDto_1!=null){
      retData.setDocumentList(//objList-to-objLists
        queryMyNetDiskLatestDocListComRespDto_1.getDocumentList().stream().map(item -> {
      BffDocumentDto elm = new BffDocumentDto();
      if(item!=null){
      elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:319551_2
elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:319552_2
elm.setFileRelativeAllPathAccess(item.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:319553_2
elm.setFileSize(item.getFileSize());//SimpleFieldAssign//sourceId:319554_2
elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:319555_2
elm.setUnstructuredDataType(item.getUnstructuredDataType());//SimpleFieldAssign//sourceId:319556_2
elm.setIsSupportPreview(item.getIsSupportPreview());//SimpleFieldAssign//sourceId:319557_2
elm.setCreateTime(item.getCreateTime());//SimpleFieldAssign//sourceId:319558_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660842_1
    }

// TODO: 2024/8/9  
  retData.setPageNum(queryMyNetDiskLatestDocListComRespDto.getPageNum());
        retData.setPageSize(queryMyNetDiskLatestDocListComRespDto.getPageSize());
        retData.setTotal(queryMyNetDiskLatestDocListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryMyNetDiskLatestDocListComRespDto.getTotalNum()) / Double.valueOf(queryMyNetDiskLatestDocListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B2新增文件夹[8813]
   * gen by moon at 8/12/2024, 8:35:04 PM
   */
    @Trace(operationName = "B2新增文件夹")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddDataFolderRespDto addDataFolder(BffAddDataFolderReqDto reqDto){


       //步骤0: D1查询空间成员详情(公共) - queryMemberDetailCom
     QueryMemberDetailComRespDto queryMemberDetailComRespDto = null;
    QueryMemberDetailComReqDto queryMemberDetailComReqDto=new QueryMemberDetailComReqDto();
  if(reqDto!=null){
      queryMemberDetailComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660492_1
queryMemberDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660493_1
    }

    /*D1查询空间成员详情(公共)[8820]   */
    Assert.isNull(queryMemberDetailComReqDto.getUserId(),"B2新增文件夹-D1查询空间成员详情(公共)-成员个人账号不能为空",false);
Assert.isNull(queryMemberDetailComReqDto.getSpaceId(),"B2新增文件夹-D1查询空间成员详情(公共)-创建于空间ID不能为空",false);
      queryMemberDetailComRespDto = fwBaseMemberClient.queryMemberDetailCom(queryMemberDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(queryMemberDetailComRespDto== null||  queryMemberDetailComRespDto.getMemberId() ==null,"找不到数据，系统异常",false);



//步骤1: D2新增文件夹业务处理(公共) - addDataFolderBizProCom
     AddDataFolderBizProComRespDto addDataFolderBizProComRespDto = null;
    if(queryMemberDetailComRespDto !=null){
          AddDataFolderBizProComReqDto addDataFolderBizProComReqDto=new AddDataFolderBizProComReqDto();
  if(reqDto!=null){
      addDataFolderBizProComReqDto.setParentUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660453_1
addDataFolderBizProComReqDto.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660454_1
addDataFolderBizProComReqDto.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1660457_1
addDataFolderBizProComReqDto.setIsRootFolder(reqDto.getIsRootFolder());//SimpleFieldAssign//sourceId:1660455_1
addDataFolderBizProComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660458_1
addDataFolderBizProComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1660459_1
addDataFolderBizProComReqDto.setSourceIdentityType(reqDto.getSourceIdentityType());//SimpleFieldAssign//sourceId:1660461_1
addDataFolderBizProComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660462_1
    }
if(queryMemberDetailComRespDto!=null){
      addDataFolderBizProComReqDto.setMemberId(queryMemberDetailComRespDto.getMemberId());//SimpleFieldAssign//sourceId:1660460_1
    }

    /*D2新增文件夹业务处理(公共)[8819]   */
    Assert.isNull(addDataFolderBizProComReqDto.getFolderName(),"B2新增文件夹-D2新增文件夹业务处理(公共)-文件夹名不能为空",false);
Assert.isNull(addDataFolderBizProComReqDto.getIsPrivateNetDisk(),"B2新增文件夹-D2新增文件夹业务处理(公共)-是否自主网盘不能为空",false);
Assert.isNull(addDataFolderBizProComReqDto.getIsRootFolder(),"B2新增文件夹-D2新增文件夹业务处理(公共)-是否一级文件夹不能为空",false);
Assert.isNull(addDataFolderBizProComReqDto.getUserId(),"B2新增文件夹-D2新增文件夹业务处理(公共)-归属个人账号不能为空",false);
Assert.isNull(addDataFolderBizProComReqDto.getSourceIdentityType(),"B2新增文件夹-D2新增文件夹业务处理(公共)-来源身份类型不能为空",false);
Assert.isNull(addDataFolderBizProComReqDto.getSpaceId(),"B2新增文件夹-D2新增文件夹业务处理(公共)-创建于空间ID不能为空",false);
      addDataFolderBizProComRespDto = fwCompUnstructuredDataClient.addDataFolderBizProCom(addDataFolderBizProComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

BffAddDataFolderRespDto retData = new BffAddDataFolderRespDto();





return retData;
  }
/**
   * B2修改文件夹[8816]
   * gen by moon at 3/27/2024, 10:55:28 PM
   */
    @Trace(operationName = "B2修改文件夹")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateDataFolderRespDto updateDataFolder(BffUpdateDataFolderReqDto reqDto){


       //步骤0: D2修改文件夹业务处理(公共) - updateDataFolderBizProCom
     UpdateDataFolderBizProComRespDto updateDataFolderBizProComRespDto = null;
    UpdateDataFolderBizProComReqDto updateDataFolderBizProComReqDto=new UpdateDataFolderBizProComReqDto();
  if(reqDto!=null){
      updateDataFolderBizProComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660241_1
updateDataFolderBizProComReqDto.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660242_1
updateDataFolderBizProComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660663_1
updateDataFolderBizProComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660243_1
    }

    /*D2修改文件夹业务处理(公共)[8814]   */
    Assert.isNull(updateDataFolderBizProComReqDto.getUnstructuredDataFolderId(),"B2修改文件夹-D2修改文件夹业务处理(公共)-文件夹ID不能为空",false);
Assert.isNull(updateDataFolderBizProComReqDto.getUserId(),"B2修改文件夹-D2修改文件夹业务处理(公共)-归属个人账号不能为空",false);
Assert.isNull(updateDataFolderBizProComReqDto.getSpaceId(),"B2修改文件夹-D2修改文件夹业务处理(公共)-创建于空间ID不能为空",false);
      updateDataFolderBizProComRespDto = fwCompUnstructuredDataClient.updateDataFolderBizProCom(updateDataFolderBizProComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffUpdateDataFolderRespDto retData = new BffUpdateDataFolderRespDto();





return retData;
  }
/**
   * B2查询文件夹列表[8828]
   * gen by moon at 8/12/2024, 8:35:16 PM
   */
    @Trace(operationName = "B2查询文件夹列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryDataFolderListRespDto queryDataFolderList(BffQueryDataFolderListReqDto reqDto){


       QueryDataFolderListComRespDto queryDataFolderListComRespDto_1 =null;
//步骤0: D2查询文件夹列表(公共) - queryDataFolderListCom
     QueryDataFolderListComRespDto queryDataFolderListComRespDto = null;
    QueryDataFolderListComReqDto queryDataFolderListComReqDto=new QueryDataFolderListComReqDto();
  if(reqDto!=null){
      queryDataFolderListComReqDto.setParentUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660600_1
queryDataFolderListComReqDto.setIsRootFolder(reqDto.getIsRootFolder());//SimpleFieldAssign//sourceId:1969863_1
queryDataFolderListComReqDto.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1660601_1
queryDataFolderListComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660602_1
queryDataFolderListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1660604_1
queryDataFolderListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660606_1
    }

    /*D2查询文件夹列表(公共)[8808]   */
    Assert.isNull(queryDataFolderListComReqDto.getSpaceId(),"B2查询文件夹列表-D2查询文件夹列表(公共)-创建于空间ID不能为空",false);
      queryDataFolderListComRespDto = fwCompUnstructuredDataClient.queryDataFolderListCom(queryDataFolderListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryDataFolderListComRespDto_1 = queryDataFolderListComRespDto;

BffQueryDataFolderListRespDto retData = new BffQueryDataFolderListRespDto();
  if(queryDataFolderListComRespDto_1!=null){
      retData.setDataFolderList(queryDataFolderListComRespDto_1.getDataFolderList().stream().map(item -> BeanUtil.toBean(item, BffDataFolderDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660616_1
    }

// TODO: 2024/8/9  
  retData.setPageNum(queryDataFolderListComRespDto.getPageNum());
        retData.setPageSize(queryDataFolderListComRespDto.getPageSize());
        retData.setTotal(queryDataFolderListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryDataFolderListComRespDto.getTotalNum()) / Double.valueOf(queryDataFolderListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B2删除单个文档关系或文档[9273]
   * gen by moon at 7/18/2024, 6:41:46 PM
   */
    @Trace(operationName = "B2删除单个文档关系或文档")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteSingleDocRelOrDocRespDto deleteSingleDocRelOrDoc(BffDeleteSingleDocRelOrDocReqDto reqDto){


       //步骤0: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("FILE_STORAGE_ROOT_PATH");//CUSTOM_CONVENTION//sourceId:1696281_1
queryConfItemMatchAnswerDetailComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:1696282_1
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:1696283_1

    /*D2查平台文件存储根路径配置答案（公共）[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"B2删除单个文档关系或文档-D2查平台文件存储根路径配置答案（公共）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfSchemeCode(),"B2删除单个文档关系或文档-D2查平台文件存储根路径配置答案（公共）-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"B2删除单个文档关系或文档-D2查平台文件存储根路径配置答案（公共）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤1: D2删除单个文档关系或文档(公共) - deleteSingleDocRelOrDocCom
     DeleteSingleDocRelOrDocComRespDto deleteSingleDocRelOrDocComRespDto = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          DeleteSingleDocRelOrDocComReqDto deleteSingleDocRelOrDocComReqDto=new DeleteSingleDocRelOrDocComReqDto();
  deleteSingleDocRelOrDocComReqDto.setIsCleanPersonalInvalidDocument("FALSE");//sourceId:1934735_1
  deleteSingleDocRelOrDocComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1696253_1
  if(reqDto!=null){
      deleteSingleDocRelOrDocComReqDto.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1696252_1
deleteSingleDocRelOrDocComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1696254_1
    }
if(queryConfItemMatchAnswerDetailComRespDto!=null){
      deleteSingleDocRelOrDocComReqDto.setFileStorageRootPath(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1696255_1
    }

    /*D2删除单个文档关系或文档(公共)[8790]   */
    Assert.isNull(deleteSingleDocRelOrDocComReqDto.getUnstructuredDataId(),"B2删除单个文档关系或文档-D2删除单个文档关系或文档(公共)-文档ID不能为空",false);
Assert.isNull(deleteSingleDocRelOrDocComReqDto.getFileStorageRootPath(),"B2删除单个文档关系或文档-D2删除单个文档关系或文档(公共)-文件存储根路径不能为空",false);
Assert.isNull(deleteSingleDocRelOrDocComReqDto.getIsCleanPersonalInvalidDocument(),"B2删除单个文档关系或文档-D2删除单个文档关系或文档(公共)-是否清理个人无效文档不能为空",false);
Assert.isNull(deleteSingleDocRelOrDocComReqDto.getSpaceId(),"B2删除单个文档关系或文档-D2删除单个文档关系或文档(公共)-创建于空间ID不能为空",false);
      deleteSingleDocRelOrDocComRespDto = fwCompUnstructuredDataClient.deleteSingleDocRelOrDocCom(deleteSingleDocRelOrDocComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

BffDeleteSingleDocRelOrDocRespDto retData = new BffDeleteSingleDocRelOrDocRespDto();





return retData;
  }
/**
   * B3查询目标下成果网盘我的下属列表[10006]
   * gen by moon at 8/8/2024, 10:11:59 PM
   */
    @Trace(operationName = "B3查询目标下成果网盘我的下属列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryTargetNetDiskMySubordinateListRespDto queryTargetNetDiskMySubordinateList(BffQueryTargetNetDiskMySubordinateListReqDto reqDto){


       QueryReportToMeSubordinateFilterListRespDto queryReportToMeSubordinateFilterListRespDto_1 =null;
//步骤0: D3查询汇报给我下属筛选条件列表 - queryReportToMeSubordinateFilterList
     QueryReportToMeSubordinateFilterListRespDto queryReportToMeSubordinateFilterListRespDto = null;
    QueryReportToMeSubordinateFilterListReqDto queryReportToMeSubordinateFilterListReqDto=new QueryReportToMeSubordinateFilterListReqDto();
  if(reqDto!=null){
      queryReportToMeSubordinateFilterListReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945528_1
    }

    /*D3查询汇报给我下属筛选条件列表[9999]   */
    Assert.isNull(queryReportToMeSubordinateFilterListReqDto.getEvaluationTemplateId(),"B3查询目标下成果网盘我的下属列表-D3查询汇报给我下属筛选条件列表-冗余评价模板ID不能为空",false);
      queryReportToMeSubordinateFilterListRespDto = fwAppEvaCalcClient.queryReportToMeSubordinateFilterList(queryReportToMeSubordinateFilterListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryReportToMeSubordinateFilterListRespDto_1 = queryReportToMeSubordinateFilterListRespDto;

BffQueryTargetNetDiskMySubordinateListRespDto retData = new BffQueryTargetNetDiskMySubordinateListRespDto();
  if(queryReportToMeSubordinateFilterListRespDto_1!=null){
      retData.setSubordinateChargeSmallCircleList(queryReportToMeSubordinateFilterListRespDto_1.getSubordinateChargeSmallCircleList().stream().map(item -> BeanUtil.toBean(item, BffSubordinateChargeSmallCircleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1945531_1
    }




return retData;
  }
/**
   * B3查询目标下成果网盘高层目标周期导航列表[10007]
   * gen by moon at 8/8/2024, 10:07:08 AM
   */
    @Trace(operationName = "B3查询目标下成果网盘高层目标周期导航列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryTargetNetDiskTopPlanTargetCycleMenuListRespDto queryTargetNetDiskTopPlanTargetCycleMenuList(BffQueryTargetNetDiskTopPlanTargetCycleMenuListReqDto reqDto){


       QueryReportTaskTreeFilterListRespDto queryReportTaskTreeFilterListRespDto_1 =null;
BatchQueryTargetCatComRespDto batchQueryTargetCatComRespDto_1 =null;
//步骤0: D3判断父子中周期传值(公共) - judgeBetweenFatherSonValueTransferCom
     JudgeBetweenFatherSonValueTransferComRespDto judgeBetweenFatherSonValueTransferComRespDto = null;
    JudgeBetweenFatherSonValueTransferComReqDto judgeBetweenFatherSonValueTransferComReqDto=new JudgeBetweenFatherSonValueTransferComReqDto();
  if(reqDto!=null){
      judgeBetweenFatherSonValueTransferComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1950014_1
judgeBetweenFatherSonValueTransferComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1950011_1
judgeBetweenFatherSonValueTransferComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1950012_1
judgeBetweenFatherSonValueTransferComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1950013_1
judgeBetweenFatherSonValueTransferComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950016_1
    }

    /*D3判断父子中周期传值(公共)[4854]   */
    Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getCycleId(),"B3查询目标下成果网盘高层目标周期导航列表-D3判断父子中周期传值(公共)-周期ID不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsParentCycle(),"B3查询目标下成果网盘高层目标周期导航列表-D3判断父子中周期传值(公共)-是否父周期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsMetaphase(),"B3查询目标下成果网盘高层目标周期导航列表-D3判断父子中周期传值(公共)-是否中期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsSubCycle(),"B3查询目标下成果网盘高层目标周期导航列表-D3判断父子中周期传值(公共)-是否子周期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getEvaluationTemplateId(),"B3查询目标下成果网盘高层目标周期导航列表-D3判断父子中周期传值(公共)-评价模板ID不能为空",false);
      judgeBetweenFatherSonValueTransferComRespDto = fwAppTargetCycleClient.judgeBetweenFatherSonValueTransferCom(judgeBetweenFatherSonValueTransferComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤1: D3查询汇报任务树筛选条件列表 - queryReportTaskTreeFilterList
     QueryReportTaskTreeFilterListRespDto queryReportTaskTreeFilterListRespDto = null;
    if(judgeBetweenFatherSonValueTransferComRespDto !=null){
    QueryReportTaskTreeFilterListReqDto queryReportTaskTreeFilterListReqDto=new QueryReportTaskTreeFilterListReqDto();
  queryReportTaskTreeFilterListReqDto.setTargetCycleContentTypeCode("TARGET_CATEGORY");//sourceId:1945535_1
if(judgeBetweenFatherSonValueTransferComRespDto!=null){
      queryReportTaskTreeFilterListReqDto.setCycleId(judgeBetweenFatherSonValueTransferComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1950007_1
queryReportTaskTreeFilterListReqDto.setIsParentCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1950008_1
queryReportTaskTreeFilterListReqDto.setIsMetaphase(judgeBetweenFatherSonValueTransferComRespDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1950009_1
queryReportTaskTreeFilterListReqDto.setIsSubCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1950010_1
    }
if(reqDto!=null){
      queryReportTaskTreeFilterListReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945532_1
    }

    /*D3查询汇报任务树筛选条件列表[9997]   */
    Assert.isNull(queryReportTaskTreeFilterListReqDto.getTargetCycleContentTypeCode(),"B3查询目标下成果网盘高层目标周期导航列表-D3查询汇报任务树筛选条件列表-关联目标内容类型编码不能为空",false);
    Assert.isNull(queryReportTaskTreeFilterListReqDto.getEvaluationTemplateId(),"B3查询目标下成果网盘高层目标周期导航列表-D3查询汇报任务树筛选条件列表-冗余评价模板ID不能为空",false);
      queryReportTaskTreeFilterListRespDto = fwAppEvaCalcClient.queryReportTaskTreeFilterList(queryReportTaskTreeFilterListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryReportTaskTreeFilterListRespDto_1 = queryReportTaskTreeFilterListRespDto;
           }

//步骤2: D3批量查询目标分类(公共) - batchQueryTargetCatCom
     BatchQueryTargetCatComRespDto batchQueryTargetCatComRespDto = null;
    if(queryReportTaskTreeFilterListRespDto !=null){
          BatchQueryTargetCatComReqDto batchQueryTargetCatComReqDto=new BatchQueryTargetCatComReqDto();
  if(queryReportTaskTreeFilterListRespDto!= null&&  queryReportTaskTreeFilterListRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(queryReportTaskTreeFilterListRespDto.getEvaObjTargetCycleList())){
      batchQueryTargetCatComReqDto.setTargetCatList(queryReportTaskTreeFilterListRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1957422_1
    }

    /*D3批量查询目标分类(公共)[8827]   */

      batchQueryTargetCatComRespDto = fwAppIndexSystemClient.batchQueryTargetCatCom(batchQueryTargetCatComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryTargetCatComRespDto_1 = batchQueryTargetCatComRespDto;
           }

BffQueryTargetNetDiskTopPlanTargetCycleMenuListRespDto retData = new BffQueryTargetNetDiskTopPlanTargetCycleMenuListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryReportTaskTreeFilterListRespDto_1!= null && !CollectionUtil.isEmpty(queryReportTaskTreeFilterListRespDto_1.getEvaObjTargetCycleList()) ){
          for (EvaObjTargetCycleDto evaObjTargetCycleDto : queryReportTaskTreeFilterListRespDto_1.getEvaObjTargetCycleList()) {
              BffEvaObjTargetCycleDto retElm = new BffEvaObjTargetCycleDto();
  if(queryReportTaskTreeFilterListRespDto_1!=null){
      retElm.setEvaObjTargetCycleId(evaObjTargetCycleDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:397449_2
retElm.setParentEvaObjTargetCycleId(evaObjTargetCycleDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:403401_2
retElm.setEvaObjTargetCycleCode(evaObjTargetCycleDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:397451_2
retElm.setCyclelAlias(evaObjTargetCycleDto.getCyclelAlias());//SimpleFieldAssign//sourceId:397452_2
retElm.setCycleId(evaObjTargetCycleDto.getCycleId());//SimpleFieldAssign//sourceId:399163_2
retElm.setIsParentCycle(evaObjTargetCycleDto.getIsParentCycle());//SimpleFieldAssign//sourceId:399164_2
retElm.setIsMetaphase(evaObjTargetCycleDto.getIsMetaphase());//SimpleFieldAssign//sourceId:399165_2
retElm.setIsSubCycle(evaObjTargetCycleDto.getIsSubCycle());//SimpleFieldAssign//sourceId:399166_2
retElm.setTargetCycleContentTypeCode(evaObjTargetCycleDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:399230_2
retElm.setTargetCycleContentId(evaObjTargetCycleDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:399229_2
    }
              retData.getEvaObjTargetCycleList().add(retElm);
               if(batchQueryTargetCatComRespDto_1!= null){
          for (TargetCatDto targetCatDto : batchQueryTargetCatComRespDto_1.getTargetCatList()) {
                if (targetCatDto.getTargetCategoryId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(batchQueryTargetCatComRespDto_1!=null){
      retElm.setTargetCategoryName(targetCatDto.getTargetCategoryName());//SimpleFieldAssign//sourceId:402235_2
retElm.setIsLast(targetCatDto.getIsLast());//SimpleFieldAssign//sourceId:402236_2
    }
                }
            }
          }

          }
        }//sourceId:1945537_1


        List<Object> allNodes =new ArrayList<>();
        allNodes.addAll(retData.getEvaObjTargetCycleList());
        List<TreeNode> nodeList = CommonFunctionHelper.buildTree(allNodes);
        retData.setTreeNode(nodeList);
        retData.setEvaObjTargetCycleList(null);

return retData;
  }
/**
   * B3查询目标下成果网盘中基层目标周期导航列表[10008]
   * gen by moon at 7/24/2024, 3:18:59 AM
   */
    @Trace(operationName = "B3查询目标下成果网盘中基层目标周期导航列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListRespDto queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuList(BffQueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListReqDto reqDto){


       QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto_1 =null;
//步骤0: D3查询目标下成果网盘中基层目标周期导航列表(公共) - queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListCom
     QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto = null;
    QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto=new QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto();
if(reqDto!=null){
      queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1950489_1
queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1950490_1
queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1950491_1
queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1950492_1
queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1950493_1
queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950494_1
    }

    /*D3查询目标下成果网盘中基层目标周期导航列表(公共)[10032]   */
    Assert.isNull(queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.getDeptId(),"B3查询目标下成果网盘中基层目标周期导航列表-D3查询目标下成果网盘中基层目标周期导航列表(公共)-部门ID不能为空",false);
Assert.isNull(queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto.getEvaluationTemplateId(),"B3查询目标下成果网盘中基层目标周期导航列表-D3查询目标下成果网盘中基层目标周期导航列表(公共)-冗余评价模板ID不能为空",false);
      queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto = fwAppUnstructuredDataClient.queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListCom(queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto_1 = queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto;

BffQueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListRespDto retData = new BffQueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListRespDto();
  if(queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto_1!=null){
      retData.setEvaObjTargetCycleList(queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto_1.getEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, BffEvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1950510_1
    }




return retData;
  }
/**
   * B3执行按目标周期查询目标下成果网盘内容列表[10009]
   * gen by moon at 8/9/2024, 4:05:07 PM
   */
    @Trace(operationName = "B3执行按目标周期查询目标下成果网盘内容列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskContentRespDto implementTargetNetDiskContent(BffImplementTargetNetDiskContentReqDto reqDto){


       QuerySubEvaObjjTargetCycleListComRespDto querySubEvaObjjTargetCycleListComRespDto_1 =null;
QueryContentVirtualOrgMemberDeptListComRespDto queryContentVirtualOrgMemberDeptListComRespDto_1 =null;
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto_1 =null;
//virtualUsage D3判断父子中周期传值(公共)  71876
      JudgeBetweenFatherSonValueTransferComRespDto judgeBetweenFatherSonValueTransferComRespDto = null;
    JudgeBetweenFatherSonValueTransferComReqDto judgeBetweenFatherSonValueTransferComReqDto=new JudgeBetweenFatherSonValueTransferComReqDto();
  if(reqDto!=null){
      judgeBetweenFatherSonValueTransferComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1949146_1_71876
judgeBetweenFatherSonValueTransferComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1949147_1_71876
judgeBetweenFatherSonValueTransferComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1949148_1_71876
judgeBetweenFatherSonValueTransferComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1949149_1_71876
judgeBetweenFatherSonValueTransferComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1949151_1_71876
    }

    /*D3判断父子中周期传值(公共)[4854]   */
    Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsParentCycle(),"B3执行按目标周期查询目标下成果网盘内容列表-D3判断父子中周期传值(公共)-是否父周期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsMetaphase(),"B3执行按目标周期查询目标下成果网盘内容列表-D3判断父子中周期传值(公共)-是否中期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsSubCycle(),"B3执行按目标周期查询目标下成果网盘内容列表-D3判断父子中周期传值(公共)-是否子周期不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getCycleId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3判断父子中周期传值(公共)-周期ID不能为空",false);
Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getEvaluationTemplateId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3判断父子中周期传值(公共)-评价模板ID不能为空",false);
      judgeBetweenFatherSonValueTransferComRespDto = fwAppTargetCycleClient.judgeBetweenFatherSonValueTransferCom(judgeBetweenFatherSonValueTransferComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D3查询下级目标周期列表(公共)  71810
      QuerySubEvaObjjTargetCycleListComRespDto querySubEvaObjjTargetCycleListComRespDto = null;
    if(judgeBetweenFatherSonValueTransferComRespDto !=null){
    QuerySubEvaObjjTargetCycleListComReqDto querySubEvaObjjTargetCycleListComReqDto=new QuerySubEvaObjjTargetCycleListComReqDto();
  querySubEvaObjjTargetCycleListComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1945582_1_71810
querySubEvaObjjTargetCycleListComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1945573_1_71810
querySubEvaObjjTargetCycleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1945580_1_71810
if(reqDto!=null){
      querySubEvaObjjTargetCycleListComReqDto.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1945574_1_71810
querySubEvaObjjTargetCycleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945578_1_71810
    }
if(judgeBetweenFatherSonValueTransferComRespDto!=null){
      querySubEvaObjjTargetCycleListComReqDto.setIsParentCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1945575_1_71810
querySubEvaObjjTargetCycleListComReqDto.setIsMetaphase(judgeBetweenFatherSonValueTransferComRespDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1945577_1_71810
querySubEvaObjjTargetCycleListComReqDto.setIsSubCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1945576_1_71810
querySubEvaObjjTargetCycleListComReqDto.setCycleId(judgeBetweenFatherSonValueTransferComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1945581_1_71810
    }

    /*D3查询下级目标周期列表(公共)[8869]   */
    Assert.isNull(querySubEvaObjjTargetCycleListComReqDto.getEvaObjEntityId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3查询下级目标周期列表(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(querySubEvaObjjTargetCycleListComReqDto.getEvaObjTypeCode(),"B3执行按目标周期查询目标下成果网盘内容列表-D3查询下级目标周期列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(querySubEvaObjjTargetCycleListComReqDto.getParentEvaObjTargetCycleId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3查询下级目标周期列表(公共)-上级被评对象目标周期标识不能为空",false);
Assert.isNull(querySubEvaObjjTargetCycleListComReqDto.getSubjectLifeCycle(),"B3执行按目标周期查询目标下成果网盘内容列表-D3查询下级目标周期列表(公共)-主体生命周期不能为空",false);
Assert.isNull(querySubEvaObjjTargetCycleListComReqDto.getEvaluationTemplateId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3查询下级目标周期列表(公共)-冗余评价模板ID不能为空",false);
      querySubEvaObjjTargetCycleListComRespDto = fwAppDashboardTargetContentClient.querySubEvaObjjTargetCycleListCom(querySubEvaObjjTargetCycleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySubEvaObjjTargetCycleListComRespDto_1 = querySubEvaObjjTargetCycleListComRespDto;
           }
if((querySubEvaObjjTargetCycleListComRespDto!= null&&  querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList() !=null && querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList().size()>0)) {
        //if(D3查询下级目标周期列表(公共).被评对象目标周期列表数据集条数 大于 0)  71811

QueryContentVirtualOrgMemberDeptListComRespDto queryContentVirtualOrgMemberDeptListComRespDto = null;
    if(querySubEvaObjjTargetCycleListComRespDto !=null){
          QueryContentVirtualOrgMemberDeptListComReqDto queryContentVirtualOrgMemberDeptListComReqDto=new QueryContentVirtualOrgMemberDeptListComReqDto();
  queryContentVirtualOrgMemberDeptListComReqDto.setIsArchive("FALSE");//sourceId:1945585_1_71812
if(querySubEvaObjjTargetCycleListComRespDto!= null&&  querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList())){
      queryContentVirtualOrgMemberDeptListComReqDto.setContentVirtualOrgMemberDeptList(querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1945586_1_71812
    }
if(reqDto!=null){
      queryContentVirtualOrgMemberDeptListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945588_1_71812
    }

    /*D3-3查询内容匹配虚拟成员部门列表(公共)[4789]   */
    Assert.isNull(queryContentVirtualOrgMemberDeptListComReqDto.getEvaluationTemplateId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3-3查询内容匹配虚拟成员部门列表(公共)-归属对象ID不能为空",false);
Assert.isNull(queryContentVirtualOrgMemberDeptListComReqDto.getIsArchive(),"B3执行按目标周期查询目标下成果网盘内容列表-D3-3查询内容匹配虚拟成员部门列表(公共)-是否存档不能为空",false);
      queryContentVirtualOrgMemberDeptListComRespDto = fwAppVirtualOrgClient.queryContentVirtualOrgMemberDeptListCom(queryContentVirtualOrgMemberDeptListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryContentVirtualOrgMemberDeptListComRespDto_1 = queryContentVirtualOrgMemberDeptListComRespDto;
           }
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto = null;
    if(querySubEvaObjjTargetCycleListComRespDto !=null){
          BatchQueryVirtualOrgMemberListByIdsComReqDto batchQueryVirtualOrgMemberListByIdsComReqDto=new BatchQueryVirtualOrgMemberListByIdsComReqDto();
  batchQueryVirtualOrgMemberListByIdsComReqDto.setIsPersonCharge("TRUE");//sourceId:1945592_1_71813
if(querySubEvaObjjTargetCycleListComRespDto!= null&&  querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList())){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setVirtualOrgMemberList(querySubEvaObjjTargetCycleListComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1945590_1_71813
    }
if(reqDto!=null){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945594_1_71813
    }

    /*D3-批量查询虚拟组织成员列表By内容表主键[6205]   */
    Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getIsPersonCharge(),"B3执行按目标周期查询目标下成果网盘内容列表-D3-批量查询虚拟组织成员列表By内容表主键-是否负责人不能为空",false);
Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getEvaluationTemplateId(),"B3执行按目标周期查询目标下成果网盘内容列表-D3-批量查询虚拟组织成员列表By内容表主键-归属对象ID不能为空",false);
      batchQueryVirtualOrgMemberListByIdsComRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberListByIdsCom(batchQueryVirtualOrgMemberListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberListByIdsComRespDto_1 = batchQueryVirtualOrgMemberListByIdsComRespDto;
           }
      }
BffImplementTargetNetDiskContentRespDto retData = new BffImplementTargetNetDiskContentRespDto();
  //数据集融合  MoreListToOneSource
        if(querySubEvaObjjTargetCycleListComRespDto_1!= null && !CollectionUtil.isEmpty(querySubEvaObjjTargetCycleListComRespDto_1.getEvaObjTargetCycleList()) ){
          for (EvaObjTargetCycleDto evaObjTargetCycleDto : querySubEvaObjjTargetCycleListComRespDto_1.getEvaObjTargetCycleList()) {
              BffEvaObjTargetCycleDto retElm = new BffEvaObjTargetCycleDto();
             if(querySubEvaObjjTargetCycleListComRespDto_1!=null){
      retElm.setEvaObjTargetCycleId(evaObjTargetCycleDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:397481_2
retElm.setEvaObjTargetCycleCode(evaObjTargetCycleDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:397482_2
retElm.setTargetCycleContentId(evaObjTargetCycleDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:397483_2
retElm.setTargetCycleContentTypeCode(evaObjTargetCycleDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:397484_2
retElm.setCyclelAlias(evaObjTargetCycleDto.getCyclelAlias());//SimpleFieldAssign//sourceId:397485_2
retElm.setCycleId(evaObjTargetCycleDto.getCycleId());//SimpleFieldAssign//sourceId:405349_2
retElm.setIsParentCycle(evaObjTargetCycleDto.getIsParentCycle());//SimpleFieldAssign//sourceId:405350_2
retElm.setIsSubCycle(evaObjTargetCycleDto.getIsSubCycle());//SimpleFieldAssign//sourceId:405351_2
retElm.setIsMetaphase(evaObjTargetCycleDto.getIsMetaphase());//SimpleFieldAssign//sourceId:405352_2
    }
              retData.getEvaObjTargetCycleList().add(retElm);
               if(queryContentVirtualOrgMemberDeptListComRespDto_1!= null){
          for (ContentVirtualOrgMemberDeptDto contentVirtualOrgMemberDeptDto : queryContentVirtualOrgMemberDeptListComRespDto_1.getContentVirtualOrgMemberDeptList()) {
                if (contentVirtualOrgMemberDeptDto.getEntityId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(queryContentVirtualOrgMemberDeptListComRespDto_1!=null){
      retElm.setDeptId(contentVirtualOrgMemberDeptDto.getDeptId());//SimpleFieldAssign//sourceId:397486_2
retElm.setDeptShortName(contentVirtualOrgMemberDeptDto.getDeptShortName());//SimpleFieldAssign//sourceId:397487_2
    }
                }
            }
          }

 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberListByIdsComRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!=null){
      retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:397488_2
retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:397489_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:397490_2
retElm.setIsLast(virtualOrgMemberDto.getIsLast());//SimpleFieldAssign//sourceId:405335_2
retElm.setLevelNumber(virtualOrgMemberDto.getLevelNumber());//SimpleFieldAssign//sourceId:405336_2
    }
                }
            }
          }

          }
        }//sourceId:1945602_1

// TODO: 2024/8/9  
  retData.setPageNum(querySubEvaObjjTargetCycleListComRespDto.getPageNum());
        retData.setPageSize(querySubEvaObjjTargetCycleListComRespDto.getPageSize());
        retData.setTotal(querySubEvaObjjTargetCycleListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(querySubEvaObjjTargetCycleListComRespDto.getTotalNum()) / Double.valueOf(querySubEvaObjjTargetCycleListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3执行按身份人员查目标下网盘内容列表[10012]
   * gen by moon at 8/10/2024, 9:52:14 PM
   */
    @Trace(operationName = "B3执行按身份人员查目标下网盘内容列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskContentByOriRoleMemRespDto implementTargetNetDiskContentByOriRoleMem(BffImplementTargetNetDiskContentByOriRoleMemReqDto reqDto){


       ImplementTargetNetDiskContentByOriRoleMemComRespDto implementTargetNetDiskContentByOriRoleMemComRespDto_1 =null;
QueryContentVirtualOrgMemberDeptListComRespDto queryContentVirtualOrgMemberDeptListComRespDto_1 =null;
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto_1 =null;
//virtualUsage D3执行按身份人员查目标下网盘内容列表(公共)  71817
      ImplementTargetNetDiskContentByOriRoleMemComRespDto implementTargetNetDiskContentByOriRoleMemComRespDto = null;
    ImplementTargetNetDiskContentByOriRoleMemComReqDto implementTargetNetDiskContentByOriRoleMemComReqDto=new ImplementTargetNetDiskContentByOriRoleMemComReqDto();
  implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1946054_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1946055_1_71817
if(reqDto!=null){
      implementTargetNetDiskContentByOriRoleMemComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1946052_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1946053_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1966895_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1946059_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1946056_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1946057_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1946058_1_71817
implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1946060_1_71817
    }

    /*D3执行按身份人员查目标下网盘内容列表(公共)[10010]   */
    Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaObjEntityId(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaObjTypeCode(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getCycleId(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-周期ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsParentCycle(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-是否父周期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsMetaphase(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-是否中期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsSubCycle(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-是否子周期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaluationTemplateId(),"B3执行按身份人员查目标下网盘内容列表-D3执行按身份人员查目标下网盘内容列表(公共)-冗余评价模板ID不能为空",false);
      implementTargetNetDiskContentByOriRoleMemComRespDto = fwAppUnstructuredDataClient.implementTargetNetDiskContentByOriRoleMemCom(implementTargetNetDiskContentByOriRoleMemComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      implementTargetNetDiskContentByOriRoleMemComRespDto_1 = implementTargetNetDiskContentByOriRoleMemComRespDto;
if((implementTargetNetDiskContentByOriRoleMemComRespDto!= null&&  implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList() !=null && implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList().size()>0)) {
        //if(D3执行按身份人员查目标下网盘内容列表(公共).被评对象目标周期列表数据集条数 大于 0)  71818

QueryContentVirtualOrgMemberDeptListComRespDto queryContentVirtualOrgMemberDeptListComRespDto = null;
    if(implementTargetNetDiskContentByOriRoleMemComRespDto !=null){
          QueryContentVirtualOrgMemberDeptListComReqDto queryContentVirtualOrgMemberDeptListComReqDto=new QueryContentVirtualOrgMemberDeptListComReqDto();
  queryContentVirtualOrgMemberDeptListComReqDto.setIsArchive("FALSE");//sourceId:1946072_1_71819
if(implementTargetNetDiskContentByOriRoleMemComRespDto!= null&&  implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList())){
      queryContentVirtualOrgMemberDeptListComReqDto.setContentVirtualOrgMemberDeptList(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1946073_1_71819
    }
if(reqDto!=null){
      queryContentVirtualOrgMemberDeptListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1946075_1_71819
    }

    /*D3-3查询内容匹配虚拟成员部门列表(公共)[4789]   */
    Assert.isNull(queryContentVirtualOrgMemberDeptListComReqDto.getEvaluationTemplateId(),"B3执行按身份人员查目标下网盘内容列表-D3-3查询内容匹配虚拟成员部门列表(公共)-归属对象ID不能为空",false);
Assert.isNull(queryContentVirtualOrgMemberDeptListComReqDto.getIsArchive(),"B3执行按身份人员查目标下网盘内容列表-D3-3查询内容匹配虚拟成员部门列表(公共)-是否存档不能为空",false);
      queryContentVirtualOrgMemberDeptListComRespDto = fwAppVirtualOrgClient.queryContentVirtualOrgMemberDeptListCom(queryContentVirtualOrgMemberDeptListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryContentVirtualOrgMemberDeptListComRespDto_1 = queryContentVirtualOrgMemberDeptListComRespDto;
           }
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto = null;
    if(implementTargetNetDiskContentByOriRoleMemComRespDto !=null){
          BatchQueryVirtualOrgMemberListByIdsComReqDto batchQueryVirtualOrgMemberListByIdsComReqDto=new BatchQueryVirtualOrgMemberListByIdsComReqDto();
  if(implementTargetNetDiskContentByOriRoleMemComRespDto!= null&&  implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList())){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setVirtualOrgMemberList(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1946077_1_71820
    }
if(reqDto!=null){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1946079_1_71820
batchQueryVirtualOrgMemberListByIdsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1946081_1_71820
    }

    /*D3-批量查询虚拟组织成员列表By内容表主键[6205]   */
Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getEvaluationTemplateId(),"B3执行按身份人员查目标下网盘内容列表-D3-批量查询虚拟组织成员列表By内容表主键-归属对象ID不能为空",false);
      batchQueryVirtualOrgMemberListByIdsComRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberListByIdsCom(batchQueryVirtualOrgMemberListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberListByIdsComRespDto_1 = batchQueryVirtualOrgMemberListByIdsComRespDto;
           }
      }
BffImplementTargetNetDiskContentByOriRoleMemRespDto retData = new BffImplementTargetNetDiskContentByOriRoleMemRespDto();
  //数据集融合  MoreListToOneSource
        if(implementTargetNetDiskContentByOriRoleMemComRespDto_1!= null && !CollectionUtil.isEmpty(implementTargetNetDiskContentByOriRoleMemComRespDto_1.getEvaObjTargetCycleList()) ){
          for (EvaObjTargetCycleDto evaObjTargetCycleDto : implementTargetNetDiskContentByOriRoleMemComRespDto_1.getEvaObjTargetCycleList()) {
              BffEvaObjTargetCycleDto retElm = new BffEvaObjTargetCycleDto();
             if(implementTargetNetDiskContentByOriRoleMemComRespDto_1!=null){
      retElm.setEvaObjTargetCycleId(evaObjTargetCycleDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:397730_2
retElm.setEvaObjTargetCycleCode(evaObjTargetCycleDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:399621_2
retElm.setCyclelAlias(evaObjTargetCycleDto.getCyclelAlias());//SimpleFieldAssign//sourceId:397732_2
retElm.setCycleId(evaObjTargetCycleDto.getCycleId());//SimpleFieldAssign//sourceId:399637_2
retElm.setIsParentCycle(evaObjTargetCycleDto.getIsParentCycle());//SimpleFieldAssign//sourceId:399638_2
retElm.setIsMetaphase(evaObjTargetCycleDto.getIsMetaphase());//SimpleFieldAssign//sourceId:399639_2
retElm.setIsSubCycle(evaObjTargetCycleDto.getIsSubCycle());//SimpleFieldAssign//sourceId:399640_2
retElm.setTargetCycleContentTypeCode(evaObjTargetCycleDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:399623_2
retElm.setTargetCycleContentId(evaObjTargetCycleDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:397733_2
retElm.setCreateTime(evaObjTargetCycleDto.getCreateTime());//SimpleFieldAssign//sourceId:397743_2
    }
              retData.getEvaObjTargetCycleList().add(retElm);
               if(queryContentVirtualOrgMemberDeptListComRespDto_1!= null){
          for (ContentVirtualOrgMemberDeptDto contentVirtualOrgMemberDeptDto : queryContentVirtualOrgMemberDeptListComRespDto_1.getContentVirtualOrgMemberDeptList()) {
                if (contentVirtualOrgMemberDeptDto.getEntityId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(queryContentVirtualOrgMemberDeptListComRespDto_1!=null){
      retElm.setDeptId(contentVirtualOrgMemberDeptDto.getDeptId());//SimpleFieldAssign//sourceId:397734_2
retElm.setDeptShortName(contentVirtualOrgMemberDeptDto.getDeptShortName());//SimpleFieldAssign//sourceId:397735_2
    }
                }
            }
          }

 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberListByIdsComRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!=null){
      retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:397736_2
retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:397737_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:397738_2
    }
                }
            }
          }

          }
        }//sourceId:1946083_1

// TODO: 2024/8/9  
  retData.setPageNum(implementTargetNetDiskContentByOriRoleMemComRespDto.getPageNum());
        retData.setPageSize(implementTargetNetDiskContentByOriRoleMemComRespDto.getPageSize());
        retData.setTotal(implementTargetNetDiskContentByOriRoleMemComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(implementTargetNetDiskContentByOriRoleMemComRespDto.getTotalNum()) / Double.valueOf(implementTargetNetDiskContentByOriRoleMemComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3执行按身份人员查目标下网盘文档列表[10013]
   * gen by moon at 8/10/2024, 9:52:18 PM
   */
    @Trace(operationName = "B3执行按身份人员查目标下网盘文档列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskDocByOriRoleMemRespDto implementTargetNetDiskDocByOriRoleMem(BffImplementTargetNetDiskDocByOriRoleMemReqDto reqDto){


       ImplementTargetNetDiskDocByOriRoleMemComRespDto implementTargetNetDiskDocByOriRoleMemComRespDto_1 =null;
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto_1 =null;
//virtualUsage D3执行按身份人员查目标下网盘文档列表(公共)  71887
     ImplementTargetNetDiskDocByOriRoleMemComRespDto implementTargetNetDiskDocByOriRoleMemComRespDto = null;
    ImplementTargetNetDiskDocByOriRoleMemComReqDto implementTargetNetDiskDocByOriRoleMemComReqDto=new ImplementTargetNetDiskDocByOriRoleMemComReqDto();
  implementTargetNetDiskDocByOriRoleMemComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1946610_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1946611_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947579_1_71887
if(reqDto!=null){
      implementTargetNetDiskDocByOriRoleMemComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1946608_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1946609_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966871_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1946615_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1946612_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1946613_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1946614_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1946616_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setCreateInductionId(reqDto.getCreateInductionId());//SimpleFieldAssign//sourceId:1956082_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1946621_1_71887
implementTargetNetDiskDocByOriRoleMemComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957467_1_71887
    }

    /*D3执行按身份人员查目标下网盘文档列表(公共)[10011]   */
    Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getEvaObjEntityId(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getEvaObjTypeCode(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getCycleId(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-周期ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getIsParentCycle(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-是否父周期不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getIsMetaphase(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-是否中期不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getIsSubCycle(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-是否子周期不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getEvaluationTemplateId(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByOriRoleMemComReqDto.getSpaceId(),"B3执行按身份人员查目标下网盘文档列表-D3执行按身份人员查目标下网盘文档列表(公共)-创建于空间ID不能为空",false);
      implementTargetNetDiskDocByOriRoleMemComRespDto = fwAppUnstructuredDataClient.implementTargetNetDiskDocByOriRoleMemCom(implementTargetNetDiskDocByOriRoleMemComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      implementTargetNetDiskDocByOriRoleMemComRespDto_1 = implementTargetNetDiskDocByOriRoleMemComRespDto;
if((implementTargetNetDiskDocByOriRoleMemComRespDto!= null&&  implementTargetNetDiskDocByOriRoleMemComRespDto.getDocumentList() !=null && implementTargetNetDiskDocByOriRoleMemComRespDto.getDocumentList().size()>0)) {
        //if(D3执行按身份人员查目标下网盘文档列表(公共).文档列表数据集条数 大于 0)  71888

BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto = null;
    if(implementTargetNetDiskDocByOriRoleMemComRespDto !=null){
          BatchQueryVirtualOrgMemberListByIdsComReqDto batchQueryVirtualOrgMemberListByIdsComReqDto=new BatchQueryVirtualOrgMemberListByIdsComReqDto();
  batchQueryVirtualOrgMemberListByIdsComReqDto.setIsPersonCharge("TRUE");//sourceId:1950593_1_71889
if(implementTargetNetDiskDocByOriRoleMemComRespDto!= null&&  implementTargetNetDiskDocByOriRoleMemComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(implementTargetNetDiskDocByOriRoleMemComRespDto.getDocumentList())){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setVirtualOrgMemberList(implementTargetNetDiskDocByOriRoleMemComRespDto.getDocumentList().stream().map(item->item.getOwnParentContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1950591_1_71889
    }
if(reqDto!=null){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950595_1_71889
    }

    /*D3-批量查询虚拟组织成员列表By内容表主键[6205]   */
    Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getIsPersonCharge(),"B3执行按身份人员查目标下网盘文档列表-D3-批量查询虚拟组织成员列表By内容表主键-是否负责人不能为空",false);
Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getEvaluationTemplateId(),"B3执行按身份人员查目标下网盘文档列表-D3-批量查询虚拟组织成员列表By内容表主键-归属对象ID不能为空",false);
      batchQueryVirtualOrgMemberListByIdsComRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberListByIdsCom(batchQueryVirtualOrgMemberListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberListByIdsComRespDto_1 = batchQueryVirtualOrgMemberListByIdsComRespDto;
           }
      }
BffImplementTargetNetDiskDocByOriRoleMemRespDto retData = new BffImplementTargetNetDiskDocByOriRoleMemRespDto();
  //数据集融合  MoreListToOneSource
        if(implementTargetNetDiskDocByOriRoleMemComRespDto_1!= null && !CollectionUtil.isEmpty(implementTargetNetDiskDocByOriRoleMemComRespDto_1.getDocumentList()) ){
          for (DocumentDto documentDto : implementTargetNetDiskDocByOriRoleMemComRespDto_1.getDocumentList()) {
              BffDocumentDto retElm = new BffDocumentDto();
  if(implementTargetNetDiskDocByOriRoleMemComRespDto_1!=null){
      retElm.setOwnParentContentId(documentDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:399695_2
retElm.setUnstructuredDataId(documentDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:397997_2
retElm.setUnstructuredDataType(documentDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:397998_2
retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:397999_2
retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:398000_2
retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:398001_2
retElm.setUnstructuredDataFolderId(documentDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:398002_2
retElm.setFileRelativeAllPathAccess(documentDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:398003_2
retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:398004_2
retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:398005_2
retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:398006_2
retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:398007_2
retElm.setUnstructuredDataDesc(documentDto.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:398008_2
retElm.setCreateInductionId(documentDto.getCreateInductionId());//SimpleFieldAssign//sourceId:398009_2
retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:398010_2
    }
              retData.getDocumentList().add(retElm);
               if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberListByIdsComRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(documentDto.getOwnParentContentId())) {
                 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!=null){
      retElm.setEntityId(virtualOrgMemberDto.getEntityId());//SimpleFieldAssign//sourceId:399699_2
retElm.setDeptShortName(virtualOrgMemberDto.getDeptShortName());//SimpleFieldAssign//sourceId:399700_2
retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:399697_2
retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:399696_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:399698_2
    }
                }
            }
          }

          }
        }//sourceId:1946633_1




return retData;
  }
/**
   * B3执行按部门查目标下网盘内容列表[10018]
   * gen by moon at 8/10/2024, 9:52:22 PM
   */
    @Trace(operationName = "B3执行按部门查目标下网盘内容列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskContentByDeptIdRespDto implementTargetNetDiskContentByDeptId(BffImplementTargetNetDiskContentByDeptIdReqDto reqDto){


       ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdComRespDto_1 =null;
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto_1 =null;
//virtualUsage D3执行按部门查目标下网盘内容列表(公共)  71833
      ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdComRespDto = null;
    ImplementTargetNetDiskContentByDeptIdComReqDto implementTargetNetDiskContentByDeptIdComReqDto=new ImplementTargetNetDiskContentByDeptIdComReqDto();
  implementTargetNetDiskContentByDeptIdComReqDto.setUseScene("TARGET_PLAN_SCENE");//sourceId:1947082_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947085_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1947086_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947092_1_71833
if(reqDto!=null){
      implementTargetNetDiskContentByDeptIdComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1947084_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1966897_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1947090_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1947087_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1947088_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1947089_1_71833
implementTargetNetDiskContentByDeptIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947091_1_71833
    }

    /*D3执行按部门查目标下网盘内容列表(公共)[10016]   */
    Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getUseScene(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-虚拟组织使用场景不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getDeptId(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-虚拟组织下部门ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjEntityId(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjTypeCode(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getCycleId(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-周期ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsParentCycle(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-是否父周期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsMetaphase(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-是否中期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsSubCycle(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-是否子周期不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaluationTemplateId(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getSpaceId(),"B3执行按部门查目标下网盘内容列表-D3执行按部门查目标下网盘内容列表(公共)-创建于空间ID不能为空",false);
      implementTargetNetDiskContentByDeptIdComRespDto = fwAppUnstructuredDataClient.implementTargetNetDiskContentByDeptIdCom(implementTargetNetDiskContentByDeptIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      implementTargetNetDiskContentByDeptIdComRespDto_1 = implementTargetNetDiskContentByDeptIdComRespDto;
if((implementTargetNetDiskContentByDeptIdComRespDto!= null&&  implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList() !=null && implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList().size()<0)) {
        //if(D3执行按部门查目标下网盘内容列表(公共).被评对象目标周期列表数据集条数 小于 0)  71834

BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto = null;
    if(implementTargetNetDiskContentByDeptIdComRespDto !=null){
          BatchQueryVirtualOrgMemberListByIdsComReqDto batchQueryVirtualOrgMemberListByIdsComReqDto=new BatchQueryVirtualOrgMemberListByIdsComReqDto();
  batchQueryVirtualOrgMemberListByIdsComReqDto.setIsPersonCharge("TRUE");//sourceId:1947102_1_71835
if(implementTargetNetDiskContentByDeptIdComRespDto!= null&&  implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList())){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setVirtualOrgMemberList(implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getTargetCycleContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1947100_1_71835
    }
if(reqDto!=null){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947104_1_71835
    }

    /*D3-批量查询虚拟组织成员列表By内容表主键[6205]   */
    Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getIsPersonCharge(),"B3执行按部门查目标下网盘内容列表-D3-批量查询虚拟组织成员列表By内容表主键-是否负责人不能为空",false);
Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getEvaluationTemplateId(),"B3执行按部门查目标下网盘内容列表-D3-批量查询虚拟组织成员列表By内容表主键-归属对象ID不能为空",false);
      batchQueryVirtualOrgMemberListByIdsComRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberListByIdsCom(batchQueryVirtualOrgMemberListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberListByIdsComRespDto_1 = batchQueryVirtualOrgMemberListByIdsComRespDto;
           }
      }
BffImplementTargetNetDiskContentByDeptIdRespDto retData = new BffImplementTargetNetDiskContentByDeptIdRespDto();
  //数据集融合  MoreListToOneSource
        if(implementTargetNetDiskContentByDeptIdComRespDto_1!= null && !CollectionUtil.isEmpty(implementTargetNetDiskContentByDeptIdComRespDto_1.getEvaObjTargetCycleList()) ){
          for (EvaObjTargetCycleDto evaObjTargetCycleDto : implementTargetNetDiskContentByDeptIdComRespDto_1.getEvaObjTargetCycleList()) {
              BffEvaObjTargetCycleDto retElm = new BffEvaObjTargetCycleDto();
             if(implementTargetNetDiskContentByDeptIdComRespDto_1!=null){
      retElm.setEvaObjTargetCycleId(evaObjTargetCycleDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:398232_2
retElm.setEvaObjTargetCycleCode(evaObjTargetCycleDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:399625_2
retElm.setCyclelAlias(evaObjTargetCycleDto.getCyclelAlias());//SimpleFieldAssign//sourceId:398234_2
retElm.setCycleId(evaObjTargetCycleDto.getCycleId());//SimpleFieldAssign//sourceId:398236_2
retElm.setIsParentCycle(evaObjTargetCycleDto.getIsParentCycle());//SimpleFieldAssign//sourceId:398237_2
retElm.setIsMetaphase(evaObjTargetCycleDto.getIsMetaphase());//SimpleFieldAssign//sourceId:398239_2
retElm.setIsSubCycle(evaObjTargetCycleDto.getIsSubCycle());//SimpleFieldAssign//sourceId:398238_2
retElm.setTargetCycleContentTypeCode(evaObjTargetCycleDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:398245_2
retElm.setTargetCycleContentId(evaObjTargetCycleDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:398235_2
retElm.setCreateTime(evaObjTargetCycleDto.getCreateTime());//SimpleFieldAssign//sourceId:398247_2
    }
              retData.getEvaObjTargetCycleList().add(retElm);
               if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberListByIdsComRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(evaObjTargetCycleDto.getTargetCycleContentId())) {
                 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!=null){
      retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:399629_2
retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:399628_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:399630_2
    }
                }
            }
          }

          }
        }//sourceId:1947106_1

// TODO: 2024/8/9  
  retData.setPageNum(implementTargetNetDiskContentByDeptIdComRespDto.getPageNum());
        retData.setPageSize(implementTargetNetDiskContentByDeptIdComRespDto.getPageSize());
        retData.setTotal(implementTargetNetDiskContentByDeptIdComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(implementTargetNetDiskContentByDeptIdComRespDto.getTotalNum()) / Double.valueOf(implementTargetNetDiskContentByDeptIdComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3执行按部门查目标下网盘文档列表[10019]
   * gen by moon at 8/10/2024, 9:52:26 PM
   */
    @Trace(operationName = "B3执行按部门查目标下网盘文档列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskDocByDeptIdRespDto implementTargetNetDiskDocByDeptId(BffImplementTargetNetDiskDocByDeptIdReqDto reqDto){


       ImplementTargetNetDiskDocByDeptIdComRespDto implementTargetNetDiskDocByDeptIdComRespDto_1 =null;
BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto_1 =null;
//virtualUsage D3执行按部门查目标下网盘文档列表(公共)  71890
     ImplementTargetNetDiskDocByDeptIdComRespDto implementTargetNetDiskDocByDeptIdComRespDto = null;
    ImplementTargetNetDiskDocByDeptIdComReqDto implementTargetNetDiskDocByDeptIdComReqDto=new ImplementTargetNetDiskDocByDeptIdComReqDto();
  implementTargetNetDiskDocByDeptIdComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947548_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1947549_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947556_1_71890
if(reqDto!=null){
      implementTargetNetDiskDocByDeptIdComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1947547_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966890_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1947553_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1947550_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1947551_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1947552_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1947554_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957474_1_71890
implementTargetNetDiskDocByDeptIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947555_1_71890
    }

    /*D3执行按部门查目标下网盘文档列表(公共)[10017]   */
    Assert.isNull(implementTargetNetDiskDocByDeptIdComReqDto.getDeptId(),"B3执行按部门查目标下网盘文档列表-D3执行按部门查目标下网盘文档列表(公共)-虚拟组织下部门ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByDeptIdComReqDto.getEvaObjEntityId(),"B3执行按部门查目标下网盘文档列表-D3执行按部门查目标下网盘文档列表(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByDeptIdComReqDto.getEvaObjTypeCode(),"B3执行按部门查目标下网盘文档列表-D3执行按部门查目标下网盘文档列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementTargetNetDiskDocByDeptIdComReqDto.getEvaluationTemplateId(),"B3执行按部门查目标下网盘文档列表-D3执行按部门查目标下网盘文档列表(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementTargetNetDiskDocByDeptIdComReqDto.getSpaceId(),"B3执行按部门查目标下网盘文档列表-D3执行按部门查目标下网盘文档列表(公共)-创建于空间ID不能为空",false);
      implementTargetNetDiskDocByDeptIdComRespDto = fwAppUnstructuredDataClient.implementTargetNetDiskDocByDeptIdCom(implementTargetNetDiskDocByDeptIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      implementTargetNetDiskDocByDeptIdComRespDto_1 = implementTargetNetDiskDocByDeptIdComRespDto;
if((implementTargetNetDiskDocByDeptIdComRespDto!= null&&  implementTargetNetDiskDocByDeptIdComRespDto.getDocumentList() !=null && implementTargetNetDiskDocByDeptIdComRespDto.getDocumentList().size()>0)) {
        //if(D3执行按部门查目标下网盘文档列表(公共).文档列表数据集条数 大于 0)  71891

BatchQueryVirtualOrgMemberListByIdsComRespDto batchQueryVirtualOrgMemberListByIdsComRespDto = null;
    if(implementTargetNetDiskDocByDeptIdComRespDto !=null){
          BatchQueryVirtualOrgMemberListByIdsComReqDto batchQueryVirtualOrgMemberListByIdsComReqDto=new BatchQueryVirtualOrgMemberListByIdsComReqDto();
  batchQueryVirtualOrgMemberListByIdsComReqDto.setIsPersonCharge("TRUE");//sourceId:1950599_1_71892
if(implementTargetNetDiskDocByDeptIdComRespDto!= null&&  implementTargetNetDiskDocByDeptIdComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(implementTargetNetDiskDocByDeptIdComRespDto.getDocumentList())){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setVirtualOrgMemberList(implementTargetNetDiskDocByDeptIdComRespDto.getDocumentList().stream().map(item->item.getOwnParentContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1950597_1_71892
    }
if(reqDto!=null){
      batchQueryVirtualOrgMemberListByIdsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950601_1_71892
    }

    /*D3-批量查询虚拟组织成员列表By内容表主键[6205]   */
    Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getIsPersonCharge(),"B3执行按部门查目标下网盘文档列表-D3-批量查询虚拟组织成员列表By内容表主键-是否负责人不能为空",false);
Assert.isNull(batchQueryVirtualOrgMemberListByIdsComReqDto.getEvaluationTemplateId(),"B3执行按部门查目标下网盘文档列表-D3-批量查询虚拟组织成员列表By内容表主键-归属对象ID不能为空",false);
      batchQueryVirtualOrgMemberListByIdsComRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberListByIdsCom(batchQueryVirtualOrgMemberListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberListByIdsComRespDto_1 = batchQueryVirtualOrgMemberListByIdsComRespDto;
           }
      }
BffImplementTargetNetDiskDocByDeptIdRespDto retData = new BffImplementTargetNetDiskDocByDeptIdRespDto();
  //数据集融合  MoreListToOneSource
        if(implementTargetNetDiskDocByDeptIdComRespDto_1!= null && !CollectionUtil.isEmpty(implementTargetNetDiskDocByDeptIdComRespDto_1.getDocumentList()) ){
          for (DocumentDto documentDto : implementTargetNetDiskDocByDeptIdComRespDto_1.getDocumentList()) {
              BffDocumentDto retElm = new BffDocumentDto();
  if(implementTargetNetDiskDocByDeptIdComRespDto_1!=null){
      retElm.setOwnParentContentId(documentDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:399792_2
retElm.setUnstructuredDataId(documentDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:398457_2
retElm.setUnstructuredDataType(documentDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:398458_2
retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:398459_2
retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:398460_2
retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:398461_2
retElm.setUnstructuredDataFolderId(documentDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:398462_2
retElm.setFileRelativeAllPathAccess(documentDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:398463_2
retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:398464_2
retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:398465_2
retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:398466_2
retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:398467_2
retElm.setUnstructuredDataDesc(documentDto.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:398468_2
retElm.setCreateInductionId(documentDto.getCreateInductionId());//SimpleFieldAssign//sourceId:398469_2
retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:398470_2
    }
              retData.getDocumentList().add(retElm);
               if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberListByIdsComRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(documentDto.getOwnParentContentId())) {
                 if(batchQueryVirtualOrgMemberListByIdsComRespDto_1!=null){
      retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:399794_2
retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:399793_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:399795_2
    }
                }
            }
          }

          }
        }//sourceId:1947576_1

// TODO: 2024/8/9  
  retData.setPageNum(implementTargetNetDiskDocByDeptIdComRespDto.getPageNum());
        retData.setPageSize(implementTargetNetDiskDocByDeptIdComRespDto.getPageSize());
        retData.setTotal(implementTargetNetDiskDocByDeptIdComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(implementTargetNetDiskDocByDeptIdComRespDto.getTotalNum()) / Double.valueOf(implementTargetNetDiskDocByDeptIdComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3执行按工作周期查目标下网盘文档列表[10020]
   * gen by moon at 8/14/2024, 1:19:32 PM
   */
    @Trace(operationName = "B3执行按工作周期查目标下网盘文档列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementTargetNetDiskDocByTargetCycleIdRespDto implementTargetNetDiskDocByTargetCycleId(BffImplementTargetNetDiskDocByTargetCycleIdReqDto reqDto){


       QueryTargetContAchievementDocListComRespDto queryTargetContAchievementDocListComRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//virtualUsage D3查询目标内容成果文档列表(公共)  72071
      QueryTargetContAchievementDocListComRespDto queryTargetContAchievementDocListComRespDto = null;
    QueryTargetContAchievementDocListComReqDto queryTargetContAchievementDocListComReqDto=new QueryTargetContAchievementDocListComReqDto();
if(reqDto!=null){
      queryTargetContAchievementDocListComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1966907_1_72071
queryTargetContAchievementDocListComReqDto.setIsQueryAllDoc(reqDto.getIsQueryAllDoc());//SimpleFieldAssign//sourceId:1966908_1_72071
queryTargetContAchievementDocListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1965108_1_72071
queryTargetContAchievementDocListComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1968435_1_72071
queryTargetContAchievementDocListComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1968436_1_72071
queryTargetContAchievementDocListComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1968437_1_72071
queryTargetContAchievementDocListComReqDto.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1968438_1_72071
queryTargetContAchievementDocListComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1965109_1_72071
queryTargetContAchievementDocListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1965101_1_72071
queryTargetContAchievementDocListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1966255_1_72071
queryTargetContAchievementDocListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1965102_1_72071
queryTargetContAchievementDocListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1965104_1_72071
queryTargetContAchievementDocListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1965107_1_72071
    }

    /*D3查询目标内容成果文档列表(公共)[10081]   */
Assert.isNull(queryTargetContAchievementDocListComReqDto.getEvaluationTemplateId(),"B3执行按工作周期查目标下网盘文档列表-D3查询目标内容成果文档列表(公共)-冗余评价模板ID不能为空",false);
      queryTargetContAchievementDocListComRespDto = fwAppDashboardAchievementClient.queryTargetContAchievementDocListCom(queryTargetContAchievementDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryTargetContAchievementDocListComRespDto_1 = queryTargetContAchievementDocListComRespDto;
if((queryTargetContAchievementDocListComRespDto!= null&&  queryTargetContAchievementDocListComRespDto.getDocumentList() !=null && queryTargetContAchievementDocListComRespDto.getDocumentList().size()>0)) {
        //if(D3查询目标内容成果文档列表(公共).文档列表数据集条数 大于 0)  71840

BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryTargetContAchievementDocListComRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
if(queryTargetContAchievementDocListComRespDto!= null&&  queryTargetContAchievementDocListComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(queryTargetContAchievementDocListComRespDto.getDocumentList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryTargetContAchievementDocListComRespDto.getDocumentList().stream().map(item->item.getCreateInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1970333_1_72163
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
      }
BffImplementTargetNetDiskDocByTargetCycleIdRespDto retData = new BffImplementTargetNetDiskDocByTargetCycleIdRespDto();
  //数据集融合  MoreListToOneSource
        if(queryTargetContAchievementDocListComRespDto_1!= null && !CollectionUtil.isEmpty(queryTargetContAchievementDocListComRespDto_1.getDocumentList()) ){
          for (DocumentDto documentDto : queryTargetContAchievementDocListComRespDto_1.getDocumentList()) {
              BffDocumentDto retElm = new BffDocumentDto();
             if(queryTargetContAchievementDocListComRespDto_1!=null){
      retElm.setUnstructuredDataRelationshipId(documentDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:404850_2
retElm.setUnstructuredDataId(documentDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:404851_2
retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:404855_2
retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:404856_2
retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:404857_2
retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:404858_2
retElm.setFileRelativeAllPathAccess(documentDto.getFileRelativeAllPathAccess());//SimpleFieldAssign//sourceId:407083_2
retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:404860_2
retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:404861_2
retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:404862_2
retElm.setCreateInductionId(documentDto.getCreateInductionId());//SimpleFieldAssign//sourceId:404865_2
retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:405560_2
    }
              retData.getDocumentList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(documentDto.getCreateInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:407169_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:407170_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:407171_2
retElm.setDeptShortName(perOrgInductionRecordDto.getDeptShortName());//SimpleFieldAssign//sourceId:407172_2
    }
                }
            }
          }

          }
        }//sourceId:1965166_1

// TODO: 2024/8/9  
  retData.setPageNum(queryTargetContAchievementDocListComRespDto.getPageNum());
        retData.setPageSize(queryTargetContAchievementDocListComRespDto.getPageSize());
        retData.setTotal(queryTargetContAchievementDocListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryTargetContAchievementDocListComRespDto.getTotalNum()) / Double.valueOf(queryTargetContAchievementDocListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3执行按成果类型查成果库下网盘文档列表[10021]
   * gen by moon at 8/10/2024, 9:52:31 PM
   */
    @Trace(operationName = "B3执行按成果类型查成果库下网盘文档列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementAchievementNetDiskDocByAchTypeIdRespDto implementAchievementNetDiskDocByAchTypeId(BffImplementAchievementNetDiskDocByAchTypeIdReqDto reqDto){


       QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListComRespDto_1 =null;
BatchQueryDeptListRespDto batchQueryDeptListRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//virtualUsage D2查询文档关系实例列表(公共)  71843
      QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListComRespDto = null;
    QueryUnstructuredRelationshipInstanceListComReqDto queryUnstructuredRelationshipInstanceListComReqDto=new QueryUnstructuredRelationshipInstanceListComReqDto();
  queryUnstructuredRelationshipInstanceListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1947637_1_71843
if(reqDto!=null){
      queryUnstructuredRelationshipInstanceListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1947649_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1947646_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1947642_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1947647_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957455_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1947644_1_71843
queryUnstructuredRelationshipInstanceListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1947645_1_71843
    }

    /*D2查询文档关系实例列表(公共)[8781]   */
    Assert.isNull(queryUnstructuredRelationshipInstanceListComReqDto.getOwnParentContentId(),"B3执行按成果类型查成果库下网盘文档列表-D2查询文档关系实例列表(公共)-归属父内容表主键ID不能为空",false);
Assert.isNull(queryUnstructuredRelationshipInstanceListComReqDto.getSpaceId(),"B3执行按成果类型查成果库下网盘文档列表-D2查询文档关系实例列表(公共)-创建于空间ID不能为空",false);
      queryUnstructuredRelationshipInstanceListComRespDto = fwCompUnstructuredDataClient.queryUnstructuredRelationshipInstanceListCom(queryUnstructuredRelationshipInstanceListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryUnstructuredRelationshipInstanceListComRespDto_1 = queryUnstructuredRelationshipInstanceListComRespDto;
if((queryUnstructuredRelationshipInstanceListComRespDto!= null&&  queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList() !=null && queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList().size()>0)) {
        //if(D2查询文档关系实例列表(公共).文档关系列表数据集条数 大于 0)  71844

BatchQueryDeptListRespDto batchQueryDeptListRespDto = null;
    if(queryUnstructuredRelationshipInstanceListComRespDto !=null){
          BatchQueryDeptListReqDto batchQueryDeptListReqDto=new BatchQueryDeptListReqDto();
  if(queryUnstructuredRelationshipInstanceListComRespDto!= null&&  queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList() !=null&& !CollectionUtil.isEmpty(queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList())){
      batchQueryDeptListReqDto.setDeptList(queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList().stream().map(item->item.getThemeContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1947657_1_71845
    }

    /*D1-3批量查询部门列表	[1182]   */

      batchQueryDeptListRespDto = fwBaseOrgClient.batchQueryDeptList(batchQueryDeptListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryDeptListRespDto_1 = batchQueryDeptListRespDto;
           }
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryUnstructuredRelationshipInstanceListComRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryUnstructuredRelationshipInstanceListComRespDto!= null&&  queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList() !=null&& !CollectionUtil.isEmpty(queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList().stream().map(item->item.getCreateInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1947673_1_71847
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
      }
BffImplementAchievementNetDiskDocByAchTypeIdRespDto retData = new BffImplementAchievementNetDiskDocByAchTypeIdRespDto();
  //数据集融合  MoreListToOneSource
        if(queryUnstructuredRelationshipInstanceListComRespDto_1!= null && !CollectionUtil.isEmpty(queryUnstructuredRelationshipInstanceListComRespDto_1.getUnstructuredRelationshipList()) ){
          for (UnstructuredRelationshipDto unstructuredRelationshipDto : queryUnstructuredRelationshipInstanceListComRespDto_1.getUnstructuredRelationshipList()) {
              BffUnstructuredRelationshipDto retElm = new BffUnstructuredRelationshipDto();
             if(queryUnstructuredRelationshipInstanceListComRespDto_1!=null){
      retElm.setUnstructuredDataRelationshipId(unstructuredRelationshipDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:398569_2
retElm.setUnstructuredDataId(unstructuredRelationshipDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:398570_2
retElm.setOwnEntityId(unstructuredRelationshipDto.getOwnEntityId());//SimpleFieldAssign//sourceId:398571_2
retElm.setOwnParentContentId(unstructuredRelationshipDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:398572_2
retElm.setUnstructuredDataNumber(unstructuredRelationshipDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:398574_2
retElm.setUnstructuredDataName(unstructuredRelationshipDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:398575_2
retElm.setPostfix(unstructuredRelationshipDto.getPostfix());//SimpleFieldAssign//sourceId:398576_2
retElm.setFileSize(unstructuredRelationshipDto.getFileSize());//SimpleFieldAssign//sourceId:398577_2
retElm.setFileRelativeAllPathAccess(unstructuredRelationshipDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:398578_2
retElm.setUnstructuredDataDetailType(unstructuredRelationshipDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:398579_2
retElm.setIsSupportPreview(unstructuredRelationshipDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:398580_2
retElm.setIsUserUpload(unstructuredRelationshipDto.getIsUserUpload());//SimpleFieldAssign//sourceId:398581_2
retElm.setOrderNumber(unstructuredRelationshipDto.getOrderNumber());//SimpleFieldAssign//sourceId:398582_2
retElm.setOperateTime(unstructuredRelationshipDto.getOperateTime());//SimpleFieldAssign//sourceId:398583_2
retElm.setCreateTime(unstructuredRelationshipDto.getCreateTime());//SimpleFieldAssign//sourceId:405562_2
retElm.setCreateInductionId(unstructuredRelationshipDto.getCreateInductionId());//SimpleFieldAssign//sourceId:398584_2
    }
              retData.getUnstructuredRelationshipList().add(retElm);
               if(batchQueryDeptListRespDto_1!= null){
          for (DeptDto deptDto : batchQueryDeptListRespDto_1.getDeptList()) {
                if (deptDto.getDeptId().equals(unstructuredRelationshipDto.getThemeContentId())) {
                 if(batchQueryDeptListRespDto_1!=null){
      retElm.setDeptId(deptDto.getDeptId());//SimpleFieldAssign//sourceId:398585_2
retElm.setDeptShortName(deptDto.getDeptShortName());//SimpleFieldAssign//sourceId:398586_2
    }
                }
            }
          }

 if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(unstructuredRelationshipDto.getCreateInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:398588_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:398587_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:398589_2
    }
                }
            }
          }

          }
        }//sourceId:1947676_1

// TODO: 2024/8/9  
  retData.setPageNum(queryUnstructuredRelationshipInstanceListComRespDto.getPageNum());
        retData.setPageSize(queryUnstructuredRelationshipInstanceListComRespDto.getPageSize());
        retData.setTotal(queryUnstructuredRelationshipInstanceListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryUnstructuredRelationshipInstanceListComRespDto.getTotalNum()) / Double.valueOf(queryUnstructuredRelationshipInstanceListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B2删除文件夹[8823]
   * gen by moon at 8/12/2024, 8:35:13 PM
   */
    @Trace(operationName = "B2删除文件夹")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteDataFolderRespDto deleteDataFolder(BffDeleteDataFolderReqDto reqDto){


       //步骤0: D2删除文件夹业务处理(公共) - deleteDataFolderBizProCom
     DeleteDataFolderBizProComRespDto deleteDataFolderBizProComRespDto = null;
    DeleteDataFolderBizProComReqDto deleteDataFolderBizProComReqDto=new DeleteDataFolderBizProComReqDto();
  if(reqDto!=null){
      deleteDataFolderBizProComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660523_1
deleteDataFolderBizProComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660524_1
    }

    /*D2删除文件夹业务处理(公共)[8817]   */
    Assert.isNull(deleteDataFolderBizProComReqDto.getUnstructuredDataFolderId(),"B2删除文件夹-D2删除文件夹业务处理(公共)-文件夹ID不能为空",false);
Assert.isNull(deleteDataFolderBizProComReqDto.getSpaceId(),"B2删除文件夹-D2删除文件夹业务处理(公共)-创建于空间ID不能为空",false);
      deleteDataFolderBizProComRespDto = fwCompUnstructuredDataClient.deleteDataFolderBizProCom(deleteDataFolderBizProComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffDeleteDataFolderRespDto retData = new BffDeleteDataFolderRespDto();





return retData;
  }
/**
   * B3修改文档关系中文档别名[10178]
   * gen by moon at 8/25/2024, 1:29:15 PM
   */
    @Trace(operationName = "B3修改文档关系中文档别名")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateUnstructuredRelationshipRespDto updateUnstructuredRelationship(BffUpdateUnstructuredRelationshipReqDto reqDto){


       //步骤0: D2修改文档关系(公共) - updateUnstructuredRelationshipCom
     UpdateUnstructuredRelationshipComRespDto updateUnstructuredRelationshipComRespDto = null;
    UpdateUnstructuredRelationshipComReqDto updateUnstructuredRelationshipComReqDto=new UpdateUnstructuredRelationshipComReqDto();
  if(reqDto!=null){
      updateUnstructuredRelationshipComReqDto.setUnstructuredDataRelationshipId(reqDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:1986971_1
updateUnstructuredRelationshipComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1986972_1
    }

    /*D2修改文档关系(公共)[9558]   */
    Assert.isNull(updateUnstructuredRelationshipComReqDto.getUnstructuredDataRelationshipId(),"B3修改文档关系中文档别名-D2修改文档关系(公共)-文档关系ID不能为空",false);
Assert.isNull(updateUnstructuredRelationshipComReqDto.getUnstructuredDataName(),"B3修改文档关系中文档别名-D2修改文档关系(公共)-文档名称不能为空",false);
      updateUnstructuredRelationshipComRespDto = fwCompUnstructuredDataClient.updateUnstructuredRelationshipCom(updateUnstructuredRelationshipComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffUpdateUnstructuredRelationshipRespDto retData = new BffUpdateUnstructuredRelationshipRespDto();





return retData;
  }
  //
}
